Change email notification test to only click once at a time
This commit is contained in:
parent
c96fe25bba
commit
53de79471a
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue