mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
test(settings): Wait until groups list has loaded
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
b9b44caed4
commit
7b47c5aa06
1 changed files with 6 additions and 0 deletions
|
|
@ -55,7 +55,9 @@ describe('Settings: Assign user to a group', { testIsolation: false }, () => {
|
|||
})
|
||||
cy.runOccCommand(`group:add '${groupName}'`)
|
||||
cy.login(admin)
|
||||
cy.intercept('GET', '**/ocs/v2.php/cloud/groups/details?search=&offset=*&limit=*').as('loadGroups')
|
||||
cy.visit('/settings/users')
|
||||
cy.wait('@loadGroups')
|
||||
})
|
||||
|
||||
it('see that the group is in the list', () => {
|
||||
|
|
@ -121,7 +123,9 @@ describe('Settings: Delete an empty group', { testIsolation: false }, () => {
|
|||
before(() => {
|
||||
cy.runOccCommand(`group:add '${groupName}'`)
|
||||
cy.login(admin)
|
||||
cy.intercept('GET', '**/ocs/v2.php/cloud/groups/details?search=&offset=*&limit=*').as('loadGroups')
|
||||
cy.visit('/settings/users')
|
||||
cy.wait('@loadGroups')
|
||||
})
|
||||
|
||||
it('see that the group is in the list', () => {
|
||||
|
|
@ -169,7 +173,9 @@ describe('Settings: Delete a non empty group', () => {
|
|||
cy.runOccCommand(`group:addUser '${groupName}' '${$user.userId}'`)
|
||||
})
|
||||
cy.login(admin)
|
||||
cy.intercept('GET', '**/ocs/v2.php/cloud/groups/details?search=&offset=*&limit=*').as('loadGroups')
|
||||
cy.visit('/settings/users')
|
||||
cy.wait('@loadGroups')
|
||||
})
|
||||
after(() => cy.deleteUser(testUser))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue