aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/settings
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-10-04 17:54:42 -0700
committerChristopher Ng <chrng8@gmail.com>2023-10-05 16:52:37 -0700
commit8a31efb644ec2e3271f02470eff818f6ea8f3494 (patch)
tree89d3fbe56667bd4b61dbca55c924add16d0272f4 /cypress/e2e/settings
parent14cb7b926cc2ee796a0b3a39d5c503f9d2d207c4 (diff)
downloadnextcloud-server-8a31efb644ec2e3271f02470eff818f6ea8f3494.tar.gz
nextcloud-server-8a31efb644ec2e3271f02470eff818f6ea8f3494.zip
fix(cypress): User table column tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress/e2e/settings')
-rw-r--r--cypress/e2e/settings/users_columns.cy.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/cypress/e2e/settings/users_columns.cy.ts b/cypress/e2e/settings/users_columns.cy.ts
index 67363fb578a..31df0eacf78 100644
--- a/cypress/e2e/settings/users_columns.cy.ts
+++ b/cypress/e2e/settings/users_columns.cy.ts
@@ -49,12 +49,12 @@ describe('Settings: Show and hide columns', function() {
it('Can show a column', function() {
// see that the language column is not in the header
- cy.get(`.user-list__header tr`).within(() => {
+ cy.get('.user-list__header tr').within(() => {
cy.contains('Language').should('not.exist')
})
// see that the language column is not in all user rows
- cy.get(`tbody.user-list__body tr`).each(($row) => {
+ cy.get('tbody.user-list__body tr').each(($row) => {
cy.wrap($row).get('[data-test="language"]').should('not.exist')
})
@@ -72,24 +72,24 @@ describe('Settings: Show and hide columns', function() {
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(() => {
+ cy.get('.user-list__header tr').within(() => {
cy.contains('Language').should('exist')
})
// see that the language column is in all user rows
- cy.get(`tbody.user-list__body tr`).each(($row) => {
+ cy.get('tbody.user-list__body tr').each(($row) => {
cy.wrap($row).get('[data-test="language"]').should('exist')
})
})
it('Can hide a column', function() {
// see that the last login column is in the header
- cy.get(`.user-list__header tr`).within(() => {
+ cy.get('.user-list__header tr').within(() => {
cy.contains('Last login').should('exist')
})
// see that the last login column is in all user rows
- cy.get(`tbody.user-list__body tr`).each(($row) => {
+ cy.get('tbody.user-list__body tr').each(($row) => {
cy.wrap($row).get('[data-test="lastLogin"]').should('exist')
})
@@ -107,12 +107,12 @@ describe('Settings: Show and hide columns', function() {
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(() => {
+ cy.get('.user-list__header tr').within(() => {
cy.contains('Last login').should('not.exist')
})
// see that the last login column is not in all user rows
- cy.get(`tbody.user-list__body tr`).each(($row) => {
+ cy.get('tbody.user-list__body tr').each(($row) => {
cy.wrap($row).get('[data-test="lastLogin"]').should('not.exist')
})
})