fix: refs #8600 fixed zoneList & added test case to zoneSummary
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
6304c53a3f
commit
f0e6db951e
|
@ -22,4 +22,14 @@ describe('ZoneList', () => {
|
||||||
cy.get('.header > .q-icon').click();
|
cy.get('.header > .q-icon').click();
|
||||||
cy.url().should('include', 'zone/2/summary');
|
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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -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.get('.full-width > .q-pb-md > .header-link > .link').click();
|
||||||
cy.url().should('include', 'zone/2/warehouses');
|
cy.url().should('include', 'zone/2/warehouses');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue