Add waits in Teams e2e test (#721)
Waits will hopefully further reduce flakiness. Add TODO for investigating possible bug in React code.
This commit is contained in:
@@ -18,6 +18,7 @@ describe("User invite and activation", () => {
|
||||
|
||||
cy.findByRole("button", { name: /^create$/i }).click();
|
||||
|
||||
// Ensure the email has been delivered
|
||||
cy.wait(3000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.logout();
|
||||
|
||||
@@ -17,6 +17,9 @@ describe("Teams flow", () => {
|
||||
cy.findByRole("button", { name: /^create$/i }).click();
|
||||
|
||||
cy.visit("/settings/teams");
|
||||
// Allow rendering to settle
|
||||
// TODO this might represent a bug in the React code.
|
||||
cy.wait(100); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.contains("Valor").get(".Select-arrow-zone").click();
|
||||
|
||||
@@ -30,6 +33,9 @@ describe("Teams flow", () => {
|
||||
cy.findByRole("button", { name: /save/i }).click();
|
||||
|
||||
cy.visit("/settings/teams");
|
||||
// Allow rendering to settle
|
||||
// TODO this might represent a bug in the React code.
|
||||
cy.wait(100); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.contains("Mystic").get(".Select-arrow-zone").click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user