aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2024-03-07 11:54:54 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2024-03-07 11:54:54 +0100
commitb5b658c0d024b708690d89bb1f14b13858b4d059 (patch)
treed1bbc776da87e2acec9333bcb6f582caafe7e935 /cypress/e2e
parent32f5a15b1eb11676b0f19f43da169b07605961d3 (diff)
downloadnextcloud-server-b5b658c0d024b708690d89bb1f14b13858b4d059.tar.gz
nextcloud-server-b5b658c0d024b708690d89bb1f14b13858b4d059.zip
fix(settings): users settings cypress
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'cypress/e2e')
-rw-r--r--cypress/e2e/settings/users_groups.cy.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/cypress/e2e/settings/users_groups.cy.ts b/cypress/e2e/settings/users_groups.cy.ts
index a247991acca..7f9052800a1 100644
--- a/cypress/e2e/settings/users_groups.cy.ts
+++ b/cypress/e2e/settings/users_groups.cy.ts
@@ -39,7 +39,7 @@ describe('Settings: Create groups', () => {
// open the Create group menu
cy.get('button[aria-label="Create group"]').click()
- cy.get('li[data-cy-settings-new-group-name]').within(() => {
+ cy.get('li[data-cy-users-settings-new-group-name]').within(() => {
// see that the group name is ""
cy.get('input').should('exist').and('have.value', '')
// set the group name to foo
@@ -54,7 +54,7 @@ describe('Settings: Create groups', () => {
handlePasswordConfirmation(admin.password)
// see that the created group is in the list
- cy.get('ul.app-navigation-list').within(() => {
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
// see that the list of groups contains the group foo
cy.contains(groupName).should('exist')
})
@@ -76,8 +76,8 @@ describe('Settings: Assign user to a group', { testIsolation: false }, () => {
})
it('see that the group is in the list', () => {
- cy.get('ul.app-navigation-list').contains('li', groupName).should('exist')
- cy.get('ul.app-navigation-list').contains('li', groupName).within(() => {
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').contains('li', groupName).should('exist')
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').contains('li', groupName).within(() => {
cy.get('.counter-bubble__counter')
.should('not.exist') // is hidden when 0
})
@@ -118,7 +118,7 @@ describe('Settings: Assign user to a group', { testIsolation: false }, () => {
it('see the group was successfully assigned', () => {
// see a new memeber
- cy.get('ul.app-navigation-list')
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]')
.contains('li', groupName)
.find('.counter-bubble__counter')
.should('contain', '1')
@@ -142,7 +142,7 @@ describe('Settings: Delete an empty group', { testIsolation: false }, () => {
})
it('see that the group is in the list', () => {
- cy.get('ul.app-navigation-list').within(() => {
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
// see that the list of groups contains the group foo
cy.contains(groupName).should('exist').scrollIntoView()
// open the actions menu for the group
@@ -163,7 +163,7 @@ describe('Settings: Delete an empty group', { testIsolation: false }, () => {
})
it('deleted group is not shown anymore', () => {
- cy.get('ul.app-navigation-list').within(() => {
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
// see that the list of groups does not contain the group
cy.contains(groupName).should('not.exist')
})
@@ -192,12 +192,12 @@ describe('Settings: Delete a non empty group', () => {
it('see that the group is in the list', () => {
// see that the list of groups contains the group
- cy.get('ul.app-navigation-list').contains('li', groupName).should('exist').scrollIntoView()
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').contains('li', groupName).should('exist').scrollIntoView()
})
it('can delete the group', () => {
// open the menu
- cy.get('ul.app-navigation-list')
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]')
.contains('li', groupName)
.find('button.action-item__menutoggle')
.click({ force: true })
@@ -212,7 +212,7 @@ describe('Settings: Delete a non empty group', () => {
})
it('deleted group is not shown anymore', () => {
- cy.get('ul.app-navigation-list').within(() => {
+ cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
// see that the list of groups does not contain the group foo
cy.contains(groupName).should('not.exist')
})