diff --git a/test/cypress/integration/workerList.spec.js b/test/cypress/integration/workerList.spec.js index b24568f9f..7a6c1d84d 100644 --- a/test/cypress/integration/workerList.spec.js +++ b/test/cypress/integration/workerList.spec.js @@ -8,31 +8,19 @@ describe('WorkerList', () => { it('should load workers', () => { cy.get('.list-items > .vn-label-value:nth-child(2) > .value') .eq(0) - .should('have.text', 'Jessica Jones'); + .should('have.text', 'JessicaJones'); cy.get('.list-items > .vn-label-value:nth-child(2) > .value') .eq(1) - .should('have.text', 'Bruce Banner'); + .should('have.text', 'BruceBanner'); cy.get('.list-items > .vn-label-value:nth-child(2) > .value') .eq(2) - .should('have.text', 'Charles Xavier'); + .should('have.text', 'CharlesXavier'); }); it('should open the worker summary', () => { - cy.get('div.text-h6') - .parentsUntil('div.q-card') - .find('div.q-card__actions') - .find('button') - .first() - .click(); - cy.get('div[class="header bg-primary q-pa-sm q-mb-md"').should( - 'have.text', - '1110 - Jessica Jones' - ); - cy.get('div[class="q-item__label q-item__label--header text-h6"]') - .eq(0) - .should('have.text', 'Basic data'); - cy.get('div[class="q-item__label q-item__label--header text-h6"]') - .eq(1) - .should('have.text', 'User data'); + cy.get('.card-list-body .actions .q-btn:nth-child(2)').eq(0).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'); }); });