From a7cea458a296370d9c5c730969d03c711f1a3eb2 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 1 Sep 2023 13:42:53 +0200 Subject: [PATCH] ref #6105 fix test --- test/cypress/integration/workerList.spec.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/cypress/integration/workerList.spec.js b/test/cypress/integration/workerList.spec.js index 7a6c1d84d..d76958367 100644 --- a/test/cypress/integration/workerList.spec.js +++ b/test/cypress/integration/workerList.spec.js @@ -6,19 +6,19 @@ describe('WorkerList', () => { }); it('should load workers', () => { - cy.get('.list-items > .vn-label-value:nth-child(2) > .value') + cy.get('.card-list-body > .list-items > :nth-child(2) > .value > span') .eq(0) - .should('have.text', 'JessicaJones'); - cy.get('.list-items > .vn-label-value:nth-child(2) > .value') + .should('have.text', 'victorvd'); + cy.get('.card-list-body > .list-items > :nth-child(2) > .value > span') .eq(1) - .should('have.text', 'BruceBanner'); - cy.get('.list-items > .vn-label-value:nth-child(2) > .value') + .should('have.text', 'JessicaJones'); + cy.get('.card-list-body > .list-items > :nth-child(2) > .value > span') .eq(2) - .should('have.text', 'CharlesXavier'); + .should('have.text', 'BruceBanner'); }); it('should open the worker summary', () => { - cy.get('.card-list-body .actions .q-btn:nth-child(2)').eq(0).click(); + cy.get('.card-list-body .actions .q-btn:nth-child(2)').eq(1).click(); cy.get('.summaryHeader div').should('have.text', '1110 - Jessica Jones'); cy.get('.summary .header').eq(0).invoke('text').should('include', 'Basic data'); cy.get('.summary .header').eq(1).should('have.text', 'User data');