fix: refs #8583 remove workerTimeControl
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Carlos Satorres 2025-03-06 13:41:45 +01:00
parent c00c644701
commit 1c8f3c6c31
1 changed files with 0 additions and 36 deletions

View File

@ -1,36 +0,0 @@
describe('WorkerTimeControl', () => {
const pastMonth = '.nav-container > .row > :nth-child(1)';
const pastDay =
'[aria-label="Monday, December 4, 2000"][style="min-width: 32.2857px; max-width: 32.2857px; width: 32.2857px;"] > .q-calendar-month__day--label__wrapper > .q-calendar-month__day--label';
const addTime4December =
':nth-child(2) > :nth-child(1) > .column > .q-btn > .q-btn__content > .q-icon';
const entryType = '.q-field_control-container > [data-cy="entryType"]';
const entryHour = '.q-field_control-container > [data-cy="entryHour"]';
const entryIn = 'in';
const entryMiddle = 'middle';
const entryOut = 'out';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
cy.visit('/#/worker/1107/time-control');
});
it('should add some entries', () => {
cy.get(pastMonth).click();
cy.get(pastDay).click();
cy.get(addTime4December).click();
cy.get(entryType).type(entryIn);
cy.saveCard();
});
// 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');
// });
});