From 42aac97c355cf70ba61cea1962c9de7ce6c6b5ff Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 24 Feb 2025 14:56:07 +0100 Subject: [PATCH] fix: refs #8600 e2e --- test/cypress/integration/zone/zoneSummary.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/zone/zoneSummary.spec.js b/test/cypress/integration/zone/zoneSummary.spec.js index 8373bb1d49..5cd49840f2 100644 --- a/test/cypress/integration/zone/zoneSummary.spec.js +++ b/test/cypress/integration/zone/zoneSummary.spec.js @@ -6,17 +6,16 @@ describe('ZoneSummary', () => { cy.visit('/#/zone/2/summary'); }); - it('should redirect to basic data', () =>{ + it('should redirect to basic data', () => { cy.get(':nth-child(1) > .q-pb-md > .header-link > .link').click(); cy.url().should('include', 'zone/2/basic-data'); - }); - it('should redirect to warehouses', () =>{ + it('should redirect to warehouses', () => { cy.get('.full-width > .q-pb-md > .header-link > .link').click(); cy.url().should('include', 'zone/2/warehouses'); }); - + it('should clone the zone', () => { cy.dataCy('descriptor-more-opts').click(); cy.dataCy('Clone_button').click(); @@ -25,10 +24,10 @@ describe('ZoneSummary', () => { cy.url().should('match', /zone\/\d+\/basic-data/); cy.get('.list-box > :nth-child(1)').should('include.text', agency); cy.get('.title > span').should('include.text', 'Zone pickup B'); - }); it('should delete the zone', () => { + cy.visit('/#/zone/7/summary'); cy.dataCy('descriptor-more-opts').click(); cy.dataCy('Delete_button').click(); cy.dataCy('VnConfirm_confirm').click();