diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2023-12-01 11:44:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 11:44:51 +0100 |
commit | 546cf0ed2fa5ca7143953639f3a86b58505498a8 (patch) | |
tree | 8ba0cfaf564e30600d1b6ea429ac53c675831c0e | |
parent | 1ca7ba76711d59beff18343b0dfb77f62965d3c9 (diff) | |
parent | 869935f8efd56b6af5e5c917f956d6b6a7507038 (diff) | |
download | nextcloud-server-546cf0ed2fa5ca7143953639f3a86b58505498a8.tar.gz nextcloud-server-546cf0ed2fa5ca7143953639f3a86b58505498a8.zip |
Merge pull request #41958 from nextcloud/fix/cypress-global-search-modal
fix(cypress): Adjust user columns tests
-rw-r--r-- | cypress/e2e/settings/users_columns.cy.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cypress/e2e/settings/users_columns.cy.ts b/cypress/e2e/settings/users_columns.cy.ts index 6b2fcb8c5e7..452c6f2e8f5 100644 --- a/cypress/e2e/settings/users_columns.cy.ts +++ b/cypress/e2e/settings/users_columns.cy.ts @@ -38,7 +38,7 @@ describe('Settings: Show and hide columns', function() { // reset all visibility toggles cy.get('.modal-container #settings-section_visibility-settings input[type="checkbox"]').uncheck({ force: true }) - cy.get('.modal-container').within(() => { + cy.contains('.modal-container', 'User management settings').within(() => { // enable the last login toggle cy.get('[data-test="showLastLogin"] input[type="checkbox"]').check({ force: true }) // close the settings dialog @@ -59,7 +59,7 @@ describe('Settings: Show and hide columns', function() { // open the settings dialog cy.get('.app-navigation-entry__settings').contains('User management settings').click() - cy.get('.modal-container').within(() => { + cy.contains('.modal-container', 'User management settings').within(() => { // enable the language toggle cy.get('[data-test="showLanguages"] input[type="checkbox"]').should('not.be.checked') cy.get('[data-test="showLanguages"] input[type="checkbox"]').check({ force: true }) @@ -90,7 +90,7 @@ describe('Settings: Show and hide columns', function() { // open the settings dialog cy.get('.app-navigation-entry__settings').contains('User management settings').click() - cy.get('.modal-container').within(() => { + cy.contains('.modal-container', 'User management settings').within(() => { // disable the last login toggle cy.get('[data-test="showLastLogin"] input[type="checkbox"]').should('be.checked') cy.get('[data-test="showLastLogin"] input[type="checkbox"]').uncheck({ force: true }) @@ -98,7 +98,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(el => assertNotExistOrNotVisible(el))) + cy.waitUntil(() => cy.contains('.modal-container', 'User management settings').should(el => assertNotExistOrNotVisible(el))) // see that the last login column is not in the header cy.get('[data-cy-user-list-header-last-login]').should('not.exist') |