Cypress · Senior · Question 61 of 76

How do you test long-running background jobs triggered from the UI?

Show the answer

Correct answer: Poll the status via cy.request or UI with a timeout

Explanation

Retrying assertions or a polling task wait just long enough and fail clearly if the job never finishes.

Further reading

Problem with a question

Cypress · Senior · question 61

Test yourself

Take the Cypress · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz