refs 5987 workerList test fixed
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-08-17 15:36:06 +02:00
parent 10efafaad8
commit 746bb8962d
1 changed files with 7 additions and 19 deletions

View File

@ -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');
});
});