From f0e6db951eb554a252386f67f587ff195238cfe1 Mon Sep 17 00:00:00 2001 From: provira Date: Thu, 20 Feb 2025 15:21:44 +0100 Subject: [PATCH] fix: refs #8600 fixed zoneList & added test case to zoneSummary --- test/cypress/integration/zone/zoneList.spec.js | 10 ++++++++++ test/cypress/integration/zone/zoneSummary.spec.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/test/cypress/integration/zone/zoneList.spec.js b/test/cypress/integration/zone/zoneList.spec.js index a59a62e37..4487e83c7 100644 --- a/test/cypress/integration/zone/zoneList.spec.js +++ b/test/cypress/integration/zone/zoneList.spec.js @@ -22,4 +22,14 @@ describe('ZoneList', () => { cy.get('.header > .q-icon').click(); cy.url().should('include', 'zone/2/summary'); }); + + it('should copy the zone', () => { + cy.get('.router-link-active > .q-icon').click(); + cy.dataCy('tableAction-1').eq(1).click(); + cy.dataCy('VnConfirm_confirm').click(); + cy.url().should('not.include', 'zone/2/'); + 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'); + }); }); diff --git a/test/cypress/integration/zone/zoneSummary.spec.js b/test/cypress/integration/zone/zoneSummary.spec.js index a5e7adcfd..8373bb1d4 100644 --- a/test/cypress/integration/zone/zoneSummary.spec.js +++ b/test/cypress/integration/zone/zoneSummary.spec.js @@ -12,7 +12,7 @@ describe('ZoneSummary', () => { }); - it('should redirect to basic data', () =>{ + it('should redirect to warehouses', () =>{ cy.get('.full-width > .q-pb-md > .header-link > .link').click(); cy.url().should('include', 'zone/2/warehouses'); });