From 523e97760e82521797d7d67dc53530b8ed14ce64 Mon Sep 17 00:00:00 2001 From: jtubau Date: Thu, 20 Feb 2025 07:06:44 +0100 Subject: [PATCH] test: refs #8618 add selector for first tickets row checkbox in routeExtendedList.spec.js --- test/cypress/integration/route/routeExtendedList.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cypress/integration/route/routeExtendedList.spec.js b/test/cypress/integration/route/routeExtendedList.spec.js index 8470fecff..34d3d3a29 100644 --- a/test/cypress/integration/route/routeExtendedList.spec.js +++ b/test/cypress/integration/route/routeExtendedList.spec.js @@ -18,6 +18,8 @@ describe('Route extended list', () => { downloadBtn: '#st-actions > .q-btn-group > :nth-child(2)', markServedBtn: '#st-actions > .q-btn-group > :nth-child(3)', searchbar: 'searchbar', + firstTicketsRowSelectCheckBox: + '.q-card > :nth-child(2) > .q-table__container > .q-table__middle > .q-table > tbody > :nth-child(1) > .q-table--col-auto-width > .q-checkbox > .q-checkbox__inner > .q-checkbox__bg > .q-checkbox__svg', }; const checkboxState = { @@ -136,7 +138,7 @@ describe('Route extended list', () => { const downloadsFolder = Cypress.config('downloadsFolder'); cy.get(selectors.lastRowSelectCheckBox).click(); cy.get(selectors.downloadBtn).click(); - cy.wait(5000); //necesario para dar tiempo a que descargue el documento + cy.wait(5000); const fileName = 'download.zip'; cy.readFile(`${downloadsFolder}/${fileName}`).should('exist'); @@ -180,9 +182,7 @@ describe('Route extended list', () => { it('Should add ticket to route', () => { cy.dataCy('tableAction-0').last().click(); - cy.get( - '.q-card > :nth-child(2) > .q-table__container > .q-table__middle > .q-table > tbody > :nth-child(1) > .q-table--col-auto-width > .q-checkbox > .q-checkbox__inner > .q-checkbox__bg > .q-checkbox__svg', - ).click(); + cy.get(selectors.firstTicketsRowSelectCheckBox).click(); cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click(); cy.checkNotification(dataSaved); });