E2e tests failing: Fix 2 recent e2e detached doms (#3387)

This commit is contained in:
RachelElysia 2021-12-17 10:36:47 -08:00 committed by GitHub
parent 57137d3d31
commit 040b8eddc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,7 @@ describe("Reset user sessions flow", () => {
it("Resets a user's API tokens", () => {
// visit user's profile page and get current API token
cy.visit("/profile");
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
cy.findByRole("button", { name: /get api token/i }).click();
cy.findByText(/reveal token/i).click();
@ -17,6 +18,7 @@ describe("Reset user sessions flow", () => {
// reset user sessions via the admin user management page
cy.visit("/settings/users");
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
// first select the table cell with the user's email address then go back up to the containing row
// so we can select reset sessions from actions dropdown
@ -37,6 +39,8 @@ describe("Reset user sessions flow", () => {
cy.login();
cy.visit("/profile");
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
cy.findByRole("button", { name: /get api token/i }).click();
cy.findByText(/reveal token/i).click();
cy.get(".user-settings__secret-input").within(() => {

View file

@ -131,6 +131,7 @@ describe(
// On the Profile page, they should…
// See Admin in Role section, and no Team section
cy.visit("/profile");
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
cy.findByText(/teams/i).should("not.exist");
cy.findByText("Role").next().contains(/admin/i);
});

View file

@ -221,6 +221,8 @@ describe(
cy.get(".react-tabs").within(() => {
cy.findByText(/teams/i).click();
});
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
// Access the Settings - Team details page
cy.findByText(/apples/i).click();
cy.findByText(/apples/i).should("exist");