18 lines
680 B
JavaScript
18 lines
680 B
JavaScript
describe('ZoneUpcomingDeliveries', () => {
|
|
const tableFields = (opt) =>
|
|
`:nth-child(1) > .q-table__container > .q-table__middle > .q-table > thead > tr > :nth-child(${opt})`;
|
|
|
|
beforeEach(() => {
|
|
cy.login('developer');
|
|
cy.viewport(1920, 1080);
|
|
cy.visit(`/#/zone/upcoming-deliveries`);
|
|
});
|
|
|
|
it('should show the page', () => {
|
|
cy.get('.q-card').should('be.visible');
|
|
cy.get(tableFields(1)).should('be.visible').should('have.text', 'Province');
|
|
cy.get(tableFields(2)).should('be.visible').should('have.text', 'Closing');
|
|
cy.get(tableFields(3)).should('be.visible').should('have.text', 'Id');
|
|
});
|
|
});
|