mirror of
https://github.com/nextcloud/server.git
synced 2026-06-26 00:55:54 -04:00
test(settings): exclude the group caption from group-row selectors
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
parent
122c253bce
commit
039d2df5bc
1 changed files with 10 additions and 8 deletions
|
|
@ -163,6 +163,7 @@ describe('Settings: Delete an empty group', { testIsolation: false }, () => {
|
|||
// see that the list of groups does not contain the group
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]')
|
||||
.find('li')
|
||||
.not('.app-navigation-caption')
|
||||
.should('not.exist')
|
||||
// and also not in database
|
||||
cy.runOccCommand('group:list --output=json').then(($response) => {
|
||||
|
|
@ -219,6 +220,7 @@ describe('Settings: Delete a non empty group', () => {
|
|||
// see that the list of groups does not contain the group foo
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]')
|
||||
.find('li')
|
||||
.not('.app-navigation-caption')
|
||||
.should('not.exist')
|
||||
// and also not in database
|
||||
cy.runOccCommand('group:list --output=json').then(($response) => {
|
||||
|
|
@ -260,16 +262,16 @@ describe('Settings: Sort groups in the UI', () => {
|
|||
|
||||
it('See that the groups are sorted by the member count', () => {
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
|
||||
cy.get('li').eq(0).should('contain', 'B') // 1 member
|
||||
cy.get('li').eq(1).should('contain', 'A') // 0 members
|
||||
cy.get('li').not('.app-navigation-caption').eq(0).should('contain', 'B') // 1 member
|
||||
cy.get('li').not('.app-navigation-caption').eq(1).should('contain', 'A') // 0 members
|
||||
})
|
||||
})
|
||||
|
||||
it('See that the order is preserved after a reload', () => {
|
||||
cy.reload()
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
|
||||
cy.get('li').eq(0).should('contain', 'B') // 1 member
|
||||
cy.get('li').eq(1).should('contain', 'A') // 0 members
|
||||
cy.get('li').not('.app-navigation-caption').eq(0).should('contain', 'B') // 1 member
|
||||
cy.get('li').not('.app-navigation-caption').eq(1).should('contain', 'A') // 0 members
|
||||
})
|
||||
})
|
||||
|
||||
|
|
@ -288,16 +290,16 @@ describe('Settings: Sort groups in the UI', () => {
|
|||
|
||||
it('See that the groups are sorted by the user count', () => {
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
|
||||
cy.get('li').eq(0).should('contain', 'A')
|
||||
cy.get('li').eq(1).should('contain', 'B')
|
||||
cy.get('li').not('.app-navigation-caption').eq(0).should('contain', 'A')
|
||||
cy.get('li').not('.app-navigation-caption').eq(1).should('contain', 'B')
|
||||
})
|
||||
})
|
||||
|
||||
it('See that the order is preserved after a reload', () => {
|
||||
cy.reload()
|
||||
cy.get('ul[data-cy-users-settings-navigation-groups="custom"]').within(() => {
|
||||
cy.get('li').eq(0).should('contain', 'A')
|
||||
cy.get('li').eq(1).should('contain', 'B')
|
||||
cy.get('li').not('.app-navigation-caption').eq(0).should('contain', 'A')
|
||||
cy.get('li').not('.app-navigation-caption').eq(1).should('contain', 'B')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue