@@ -216,7 +212,6 @@ const exprBuilder = (param, value) => {
ref="tableRef"
:data-key="dataKey"
:columns="columns"
- :right-search="false"
redirect="Zone"
:create="{
urlCreate: 'Zones',
diff --git a/test/cypress/integration/zone/zoneList.spec.js b/test/cypress/integration/zone/zoneList.spec.js
index 683f4e4603..c84b1b017a 100644
--- a/test/cypress/integration/zone/zoneList.spec.js
+++ b/test/cypress/integration/zone/zoneList.spec.js
@@ -1,26 +1,18 @@
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');
- });
-
- it('should filter by agency', () => {
- cy.dataCy('zoneFilterPanelAgencySelect').type(agency);
- cy.get('.q-menu .q-item').contains(agency).click();
- cy.get(':nth-child(1) > [data-col-field="agencyModeFk"]').should(
- 'include.text',
- agency,
- );
+ cy.typeSearchbar('{enter}');
});
it('should open the zone summary', () => {
- cy.dataCy('zoneFilterPanelAgencySelect').type(agency);
- cy.get('.q-menu .q-item').contains(agency).click();
- cy.dataCy('tableAction-0').eq(1).click();
+ cy.get(firstSummaryIcon).click();
cy.get('.header > .q-icon').click();
- cy.url().should('include', 'zone/2/summary');
+ cy.url().should('include', 'zone/1/summary');
});
it('should clone the zone', () => {