Skip to content

Commit

Permalink
fix(e2e): Prevent element detached from DOM error while opening settings
Browse files Browse the repository at this point in the history
  • Loading branch information
HajekOndrej committed Nov 27, 2024
1 parent fb0a013 commit c454cbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/suite-web/e2e/support/pageObjects/topBarObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ class NavBar {
}

openSettings() {
cy.getTestElement('@suite/menu/settings', { timeout: 30000 }).should('be.visible').click();
cy.getTestElement('@suite/menu/settings', { timeout: 30000 })
.as('settingsButton')
.should('be.visible');
cy.get('@settingsButton').click();
cy.getTestElement('@settings/menu/general').should('be.visible');
}
}
Expand Down

0 comments on commit c454cbe

Please sign in to comment.