mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
E2e tests failing: Fix 2 recent e2e detached doms (#3387)
This commit is contained in:
parent
57137d3d31
commit
040b8eddc3
3 changed files with 7 additions and 0 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue