fix: refs #8583 workerBasicData & workerTimeControl

This commit is contained in:
Carlos Satorres 2025-02-25 08:03:25 +01:00
parent 8478ff768f
commit e318a46279
2 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
describe('WorkerSummary', () => {
describe('WorkerBasicData', () => {
const maritalStatusSelect = '[data-cy="MaritalStatus"]';
const nif = '42572374H';
const fi = '[data-cy="fi"]';

View File

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