You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether the test is successful or not, I want to do some restore actions (ex: logout) in afterEach(), and the actions will do some click.
Then found a issue.
If the test not fail, then click on afterEach() can work normally,
if there is a failure, then click on afterEach() will not work(but Cypress shows that did not fail)
Example
Normally Case: (Refer to Click morevert (without fail) in reproduce)
it start
do something(without fail)
it end
afterEach start
do some one click(work normally)
afterEach end
Issue Case: (Refer to Click morevert (with fail) in reproduce)
it start
do something(with fail)
afterEach start
do some one click(not work) <----------
afterEach end
Desired behavior
Whether the test is successful or not, expected the web element can be click normally in afterEach() and after() hook.
Test code to reproduce
execute command: npx cypress run -b chrome --headed --spec "cypress/e2e/sample/test_google_search.cy.js"
Current behavior
Whether the test is successful or not, I want to do some restore actions (ex: logout) in afterEach(), and the actions will do some click.
Then found a issue.
If the test not fail, then click on afterEach() can work normally,
if there is a failure, then click on afterEach() will not work(but Cypress shows that did not fail)
Example
Normally Case: (Refer to
Click morevert (without fail)
in reproduce)Issue Case: (Refer to
Click morevert (with fail)
in reproduce)Desired behavior
Whether the test is successful or not, expected the web element can be click normally in afterEach() and after() hook.
Test code to reproduce
execute command:
npx cypress run -b chrome --headed --spec "cypress/e2e/sample/test_google_search.cy.js"
minimal reproducible example:
cypress/e2e/sample/test_google_search.cy.js
cypress.config.js
Cypress Version
10.9.0 and 12.1.0
Node version
v16.16.0
Operating System
macOS 12.3.1
Debug Logs
video: (0:22 try to click the morevert icon in the upper right, but the UI didn't expand)
https://www.youtube.com/watch?v=XxwXbRVtthI
Other
No response
The text was updated successfully, but these errors were encountered: