diff --git a/test/cypress/integration/worker/workerTimeControl.spec.js b/test/cypress/integration/worker/workerTimeControl.spec.js index 9461d724ea..ddc151ae16 100644 --- a/test/cypress/integration/worker/workerTimeControl.spec.js +++ b/test/cypress/integration/worker/workerTimeControl.spec.js @@ -4,10 +4,12 @@ describe('WorkerTimeControl', () => { '[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 = 'data-cy="entryType"'; + 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');