Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
Click event in "after" hook doesn't work in "Cypress" whenever there is error or exception that occurs in "it" block

I am trying to logout an application by clicking the SignOut button written in "after" block of Cypress. The SignOut button is getting clicked whenever there is no error or exception in the "it" block (logging into the application and performing the action is written in the "it" block) but the button can`t be clicked when errors or exceptions occur (button's visibility can be checked in after block but unable to click).

Current behavior: Any click event in the after block fails if one of the performing action fails in the "it" block in Cypress.

Desired behavior: Click events in the after block should succeed even if there are failure in the "it" block.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!