diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-29 14:05:45 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-06 09:20:48 +0200 |
commit | 674805c9948460df49592d187f5bb9a4cb8f4b56 (patch) | |
tree | e24330290bba266b1aba9d67aa4e344013e5ebc7 /cypress | |
parent | 69814cd4f7e48f5f998c192064f8dc2e2bbba73a (diff) | |
download | nextcloud-server-674805c9948460df49592d187f5bb9a4cb8f4b56.tar.gz nextcloud-server-674805c9948460df49592d187f5bb9a4cb8f4b56.zip |
fix(core): Migrate UserMenu / AccountMenu to NcListItem
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/settings/access-levels.cy.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cypress/e2e/settings/access-levels.cy.ts b/cypress/e2e/settings/access-levels.cy.ts index 80cea4eb1c7..4bf0cbc1832 100644 --- a/cypress/e2e/settings/access-levels.cy.ts +++ b/cypress/e2e/settings/access-levels.cy.ts @@ -23,7 +23,9 @@ describe('Settings: Ensure only administrator can see the administration setting // I open the settings menu getNextcloudUserMenuToggle().click() // I navigate to the settings panel - getNextcloudUserMenu().find('#settings a').click() + getNextcloudUserMenu() + .findByRole('link', { name: /settings/i }) + .click() cy.url().should('match', /\/settings\/user$/) cy.get('#app-navigation').should('be.visible').within(() => { @@ -45,7 +47,9 @@ describe('Settings: Ensure only administrator can see the administration setting // I open the settings menu getNextcloudUserMenuToggle().click() // I navigate to the settings panel - getNextcloudUserMenu().find('#settings a').click() + getNextcloudUserMenu() + .findByRole('link', { name: /Personal settings/i }) + .click() cy.url().should('match', /\/settings\/user$/) cy.get('#app-navigation').should('be.visible').within(() => { |