Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Nov 15, 2022
1 parent 2145cf6 commit 1e8e885
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('/account/settings', () => {
});

it("should be able to change 'user' email settings", () => {
cy.get(emailSettingsSelector).should('have.value', '[email protected]');
cy.get(emailSettingsSelector).should('have.value', account.email);
cy.get(emailSettingsSelector).clear().type('[email protected]');
cy.get(submitSettingsSelector).click();
cy.wait('@settingsSave').then(({ response }) => expect(response.statusCode).to.equal(200));
Expand All @@ -102,7 +102,7 @@ describe('/account/settings', () => {
});

it("should not be able to change 'user' email to same value", () => {
cy.get(emailSettingsSelector).should('have.value', '[email protected]');
cy.get(emailSettingsSelector).should('have.value', account.email);
cy.get(emailSettingsSelector).clear().type(adminEmail);
cy.get(submitSettingsSelector).click();
cy.wait('@settingsSave').then(({ response }) => expect(response.statusCode).to.equal(400));
Expand Down

0 comments on commit 1e8e885

Please sign in to comment.