Skip to content

Commit

Permalink
fix toggle error test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrynko committed Oct 11, 2023
1 parent 8d2767c commit 9c027b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/integration/page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,11 @@ describe('', () => {
});

it('should not hide a todo on fail', () => {
page.mockUpdate(257334).as('updateRequest');
// to prevent Cypress from failing the test on uncaught exception
cy.once('uncaught:exception', () => false);

page.mockUpdate(257334, { statusCode: 503, body: 'Service Unavailable' })
.as('updateRequest');

todos.statusToggler(0).click();
cy.wait('@updateRequest');
Expand Down

0 comments on commit 9c027b0

Please sign in to comment.