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 26, 2024
1 parent fb0a013 commit 1e9cb10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,8 @@ 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 1e9cb10

Please sign in to comment.