Skip to content

Commit

Permalink
better test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zasa-san committed Jun 13, 2024
1 parent 0054749 commit 8fcef4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/settings/account.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ describe('Account', () => {
cy.get('input[name=email]').should('contain.value', '[email protected]');
cy.get('input[name=password]').should('not.contain.value');
cy.get('input[name=passwordConfirm]').should('not.contain.value');
});

it('should check the error and dismiss the notification', () => {
cy.contains('An error occurred');
cy.contains('button', 'View more').click();
cy.contains('Request failed with status code 403: Forbidden');
cy.contains('button', 'Dismiss').click();
});

it('should login with the new password', () => {
Expand Down

0 comments on commit 8fcef4b

Please sign in to comment.