refs 5987 workerList test fixed
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
10efafaad8
commit
746bb8962d
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue