describe('ZoneList', () => { const agency = 'inhouse pickup'; const firstSummaryIcon = ':nth-child(1) > .q-table--col-auto-width > [data-cy="tableAction-0"]'; beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); cy.visit('/#/zone/list'); cy.typeSearchbar('{enter}'); }); it('should open the zone summary', () => { cy.get(firstSummaryIcon).click(); cy.get('.header > .q-icon').click(); cy.url().should('include', 'zone/1/summary'); }); it('should clone 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/); }); });