Change email notification test to only click once at a time

This commit is contained in:
Daniel Egger 2023-06-21 16:32:58 +02:00
parent c96fe25bba
commit 53de79471a
1 changed files with 5 additions and 5 deletions

View File

@ -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",