aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-01-23 11:38:40 -0800
committerFerdinand Thiessen <opensource@fthiessen.de>2024-02-02 12:44:25 +0100
commitbd50327fd1928aeeb3c65f08f6b94ab1bff73e08 (patch)
tree3b5c6c1b7b3fd010569caecd5389196efd9207b6 /cypress
parent0ed973b3f697a07c39a70358bc572486d9510a49 (diff)
downloadnextcloud-server-bd50327fd1928aeeb3c65f08f6b94ab1bff73e08.tar.gz
nextcloud-server-bd50327fd1928aeeb3c65f08f6b94ab1bff73e08.zip
test(theming): Fix navigation bar tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/theming/navigation-bar-settings.cy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cypress/e2e/theming/navigation-bar-settings.cy.ts b/cypress/e2e/theming/navigation-bar-settings.cy.ts
index b15b70b0e0f..a0af363f6b9 100644
--- a/cypress/e2e/theming/navigation-bar-settings.cy.ts
+++ b/cypress/e2e/theming/navigation-bar-settings.cy.ts
@@ -49,7 +49,7 @@ describe('Admin theming set default apps', () => {
it('Toggle the "use custom default app" switch', () => {
cy.get('[data-cy-switch-default-app] input').should('not.be.checked')
- cy.get('[data-cy-switch-default-app] label').click()
+ cy.get('[data-cy-switch-default-app] .checkbox-content').click()
cy.get('[data-cy-switch-default-app] input').should('be.checked')
})
@@ -84,7 +84,7 @@ describe('Admin theming set default apps', () => {
cy.get('[data-cy-switch-default-app]').scrollIntoView()
cy.get('[data-cy-switch-default-app] input').should('be.checked')
- cy.get('[data-cy-switch-default-app] label').click()
+ cy.get('[data-cy-switch-default-app] .checkbox-content').click()
cy.get('[data-cy-switch-default-app] input').should('be.not.checked')
})