diff --git a/test/cypress/integration/worker/workerTimeControl.spec.js b/test/cypress/integration/worker/workerTimeControl.spec.js deleted file mode 100644 index ddc151ae1..000000000 --- a/test/cypress/integration/worker/workerTimeControl.spec.js +++ /dev/null @@ -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'); - // }); -});