forked from verdnatura/salix-front
20 lines
1006 B
JavaScript
20 lines
1006 B
JavaScript
|
describe('WorkerList', () => {
|
||
|
beforeEach(() => {
|
||
|
cy.viewport(1280, 720)
|
||
|
cy.login('developer')
|
||
|
cy.visit('/#/worker/list');
|
||
|
});
|
||
|
|
||
|
it('should load workers', () => {
|
||
|
cy.get('div[class="q-item__label text-h6"]').eq(0).should('have.text', 'Jessica Jones');
|
||
|
cy.get('div[class="q-item__label text-h6"]').eq(1).should('have.text', 'Bruce Banner');
|
||
|
cy.get('div[class="q-item__label text-h6"]').eq(2).should('have.text', 'Charles Xavier');
|
||
|
});
|
||
|
|
||
|
it('should open the worker summary', () => {
|
||
|
cy.get('div[class="q-item__section column q-item__section--side justify-center q-pa-md"]').eq(0).click();
|
||
|
cy.get('div[class="header bg-primary q-pa-sm q-mb-md"').should('have.text', '1110 - Jessica');
|
||
|
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');
|
||
|
});
|
||
|
});
|