diff --git a/test/cypress/integration/worker/workerBasicData.spec.js b/test/cypress/integration/worker/workerBasicData.spec.js index 1c1a3644d..9a8f8a0e9 100644 --- a/test/cypress/integration/worker/workerBasicData.spec.js +++ b/test/cypress/integration/worker/workerBasicData.spec.js @@ -1,4 +1,4 @@ -describe('WorkerSummary', () => { +describe('WorkerBasicData', () => { const maritalStatusSelect = '[data-cy="MaritalStatus"]'; const nif = '42572374H'; const fi = '[data-cy="fi"]'; diff --git a/test/cypress/integration/worker/workerTimeControl.spec.js b/test/cypress/integration/worker/workerTimeControl.spec.js new file mode 100644 index 000000000..a72dbaaa9 --- /dev/null +++ b/test/cypress/integration/worker/workerTimeControl.spec.js @@ -0,0 +1,22 @@ +describe('WorkerTimeControl', () => { + const pastMonth = '.nav-container > .row > :nth-child(1)'; + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('/#/worker/1107/time-control'); + }); + + it('should add some entries', () => { + cy.get(pastMonth).click(); + }); + + // it('should try descriptors', () => { + // cy.waitForElement('.summaryHeader'); + // cy.get(departmentDescriptor).click(); + // cy.get('.descriptor').should('be.visible'); + // cy.get('.q-item > .q-item__label').should('include.text', '43'); + // cy.get(roleDescriptor).click(); + // cy.get('.descriptor').should('be.visible'); + // cy.get('.q-item > .q-item__label').should('include.text', '19'); + // }); +});