2024-07-15 08:44:28 +00:00
|
|
|
describe('ZoneList', () => {
|
2025-02-18 08:05:38 +00:00
|
|
|
const agency = 'inhouse pickup';
|
2024-07-15 08:44:28 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.viewport(1280, 720);
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit('/#/zone/list');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should filter by agency', () => {
|
2025-02-18 08:05:38 +00:00
|
|
|
cy.dataCy('zoneFilterPanelNameInput').type('{downArrow}{enter}');
|
2024-07-15 08:44:28 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should open the zone summary', () => {
|
2025-02-18 08:05:38 +00:00
|
|
|
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,
|
|
|
|
);
|
2024-07-15 08:44:28 +00:00
|
|
|
});
|
|
|
|
});
|