diff options
Diffstat (limited to 'cypress/e2e/settings/users_columns.cy.ts')
-rw-r--r-- | cypress/e2e/settings/users_columns.cy.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cypress/e2e/settings/users_columns.cy.ts b/cypress/e2e/settings/users_columns.cy.ts index 84222cc7477..67363fb578a 100644 --- a/cypress/e2e/settings/users_columns.cy.ts +++ b/cypress/e2e/settings/users_columns.cy.ts @@ -21,6 +21,7 @@ */ import { User } from '@nextcloud/cypress' +import { assertNotExistOrNotVisible } from './usersUtils.js' const admin = new User('admin', 'admin') @@ -43,7 +44,7 @@ describe('Settings: Show and hide columns', function() { // close the settings dialog cy.get('button.modal-container__close').click() }) - cy.waitUntil(() => cy.get('.modal-container').should('not.be.visible')) + cy.waitUntil(() => cy.get('.modal-container').should(el => assertNotExistOrNotVisible(el))) }) it('Can show a column', function() { @@ -68,7 +69,7 @@ describe('Settings: Show and hide columns', function() { // close the settings dialog cy.get('button.modal-container__close').click() }) - cy.waitUntil(() => cy.get('.modal-container').should('not.be.visible')) + cy.waitUntil(() => cy.get('.modal-container').should(el => assertNotExistOrNotVisible(el))) // see that the language column is in the header cy.get(`.user-list__header tr`).within(() => { @@ -103,7 +104,7 @@ describe('Settings: Show and hide columns', function() { // close the settings dialog cy.get('button.modal-container__close').click() }) - cy.waitUntil(() => cy.get('.modal-container').should('not.be.visible')) + cy.waitUntil(() => cy.get('.modal-container').should(el => assertNotExistOrNotVisible(el))) // see that the last login column is not in the header cy.get(`.user-list__header tr`).within(() => { |