diff --git a/cypress/e2e/notifications.cy.js b/cypress/e2e/notifications.cy.js index 2dd45713..4f929a5e 100644 --- a/cypress/e2e/notifications.cy.js +++ b/cypress/e2e/notifications.cy.js @@ -105,8 +105,9 @@ describe("email notification settings", () => { "cy-unchecked" ); + // there is maybe a timing problem with the api endpoint + // so for the test we will only click once at time... cy.get('[data-cy="it-checkbox-USER_INTERACTION"]').click(); - cy.get('[data-cy="it-checkbox-INFORMATION"]').click(); cy.wait(500); cy.reload(); @@ -116,25 +117,24 @@ describe("email notification settings", () => { ); cy.get('[data-cy="it-checkbox-INFORMATION"]').should( "have.class", - "cy-checked" + "cy-unchecked" ); cy.get('[data-cy="it-checkbox-PROGRESS"]').should( "have.class", "cy-unchecked" ); - cy.get('[data-cy="it-checkbox-USER_INTERACTION"]').click(); cy.get('[data-cy="it-checkbox-INFORMATION"]').click(); cy.wait(500); cy.reload(); cy.get('[data-cy="it-checkbox-USER_INTERACTION"]').should( "have.class", - "cy-unchecked" + "cy-checked" ); cy.get('[data-cy="it-checkbox-INFORMATION"]').should( "have.class", - "cy-unchecked" + "cy-checked" ); cy.get('[data-cy="it-checkbox-PROGRESS"]').should( "have.class",