From 8a31efb644ec2e3271f02470eff818f6ea8f3494 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 4 Oct 2023 17:54:42 -0700 Subject: [PATCH] fix(cypress): User table column tests Signed-off-by: Christopher Ng --- cypress/e2e/settings/users_columns.cy.ts | 16 ++++++++-------- 1 file 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') }) })