我正在使用 cypress 在我公司的網站上進行自動化測試,登錄后,單擊任何交互式元素都會立即將我注銷。然而,這只是當我通過 cypress 運行它時。手動點擊仍然有效。我能做些什么來解決這個問題?這是一個用 javascript 構建的網站。我希望該網站不會將我注銷。describe('signing in', function() { it('Visits the safe and reliable sign-in page', function() { cy.visit('https://testing.safeandreliable.care/sign-in') cy.get('[id="at-field-username_and_email"]').type('[email protected]') cy.get('[id="at-field-password"]').type('******') cy.contains('Sign In').click() }) it('signs into the default entity', function(){ cy.get('[id="help-text-board"]').click({force:true}) cy.wait(9000) })})
當我使用 cypress 時,如何阻止網站自動注銷?
慕婉清6462132
2021-06-29 02:27:30