fix: refs #8600 e2e

This commit is contained in:
Jon Elias 2025-02-24 14:56:07 +01:00
parent dab2ccde97
commit 42aac97c35
1 changed files with 4 additions and 5 deletions
test/cypress/integration/zone

View File

@ -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();