From dcff03a0c25d521acb2b3ffb9c35c8eee9b8a222 Mon Sep 17 00:00:00 2001 From: jtubau Date: Thu, 22 May 2025 15:10:09 +0200 Subject: [PATCH] fix: remove agency pop-up tests and associated selector --- .../integration/route/routeList.spec.js | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/test/cypress/integration/route/routeList.spec.js b/test/cypress/integration/route/routeList.spec.js index 76cc4fd55..22c564dd5 100644 --- a/test/cypress/integration/route/routeList.spec.js +++ b/test/cypress/integration/route/routeList.spec.js @@ -5,7 +5,6 @@ describe('Route', { testIsolation: true }, () => { const selectors = { lastRow: 'tr:last-child > [data-col-field="workerFk"]', workerLink: getSelector('workerFk'), - agencyLink: getSelector('agencyModeFk'), vehicleLink: getSelector('vehicleFk'), assignedTicketsBtn: 'tableAction-0', rowSummaryBtn: 'tableAction-1', @@ -127,44 +126,6 @@ describe('Route', { testIsolation: true }, () => { }); }); - describe('Agency pop-ups', () => { - it('Should redirect to summary from the agency pop-up descriptor', () => { - cy.get(selectors.agencyLink).click(); - cy.get(selectors.descriptorTitle) - .invoke('text') - .then((text) => { - expect(text).to.include(data.Agency.val); - }); - cy.get(selectors.descriptorGoToSummaryBtn).click(); - cy.get(selectors.summaryTitle) - .invoke('text') - .then((text) => { - expect(text).to.include(data.Agency.val); - }); - }); - - it('Should redirect to the summary from the agency pop-up summary', () => { - cy.get(selectors.agencyLink).click(); - cy.get(selectors.descriptorTitle) - .invoke('text') - .then((text) => { - expect(text).to.include(data.Agency.val); - }); - cy.get(selectors.descriptorOpenSummaryBtn).click(); - cy.get(selectors.summaryTitle) - .invoke('text') - .then((text) => { - expect(text).to.include(data.Agency.val); - }); - cy.get(selectors.SummaryGoToSummaryBtn).click(); - cy.get(selectors.summaryTitle) - .invoke('text') - .then((text) => { - expect(text).to.include(data.Agency.val); - }); - }); - }); - describe('Vehicle pop-ups', () => { it('Should redirect to summary from the vehicle pop-up descriptor', () => { cy.get(selectors.vehicleLink).click();