2022-11-28 08:04:41 +00:00
|
|
|
describe('WorkerList', () => {
|
2023-10-04 13:46:15 +00:00
|
|
|
const workerFieldNames =
|
2023-12-15 07:16:54 +00:00
|
|
|
'.card-list-body > .list-items > :nth-child(1) > .value > span';
|
2022-11-28 08:04:41 +00:00
|
|
|
beforeEach(() => {
|
2022-12-20 10:53:49 +00:00
|
|
|
cy.viewport(1280, 720);
|
|
|
|
cy.login('developer');
|
2022-11-28 08:04:41 +00:00
|
|
|
cy.visit('/#/worker/list');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should load workers', () => {
|
2024-06-10 12:42:41 +00:00
|
|
|
cy.get(workerFieldNames).eq(2).should('have.text', 'jessicajones');
|
|
|
|
cy.get(workerFieldNames).eq(3).should('have.text', 'brucebanner');
|
|
|
|
cy.get(workerFieldNames).eq(4).should('have.text', 'charlesxavier');
|
2022-11-28 08:04:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should open the worker summary', () => {
|
2024-06-10 12:42:41 +00:00
|
|
|
cy.openListSummary(2);
|
2023-08-17 13:36:06 +00:00
|
|
|
cy.get('.summaryHeader div').should('have.text', '1110 - Jessica Jones');
|
2024-03-20 07:03:25 +00:00
|
|
|
cy.get('.summary .header-link')
|
|
|
|
.eq(0)
|
|
|
|
.invoke('text')
|
|
|
|
.should('include', 'Basic data');
|
2024-05-27 14:52:53 +00:00
|
|
|
cy.get('.summary .header-link').eq(2).should('have.text', 'User data ');
|
2022-11-28 08:04:41 +00:00
|
|
|
});
|
2022-12-20 10:53:49 +00:00
|
|
|
});
|