From 674805c9948460df49592d187f5bb9a4cb8f4b56 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 29 Jul 2024 14:05:45 +0200 Subject: fix(core): Migrate UserMenu / AccountMenu to NcListItem Signed-off-by: Ferdinand Thiessen --- cypress/e2e/settings/access-levels.cy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cypress') 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(() => { -- cgit v1.2.3