17 lines
608 B
JavaScript
17 lines
608 B
JavaScript
describe('Travel Extracommunity', () => {
|
|
it('Should show travels', () => {
|
|
cy.login('logistic');
|
|
cy.visit(`/#/travel/extra-community`);
|
|
cy.get('.q-page').should('be.visible');
|
|
});
|
|
|
|
it('Should show travels when user is supplier', () => {
|
|
cy.login('petterparker');
|
|
cy.visit(`/#/travel/extra-community`);
|
|
cy.get('[data-cy="vnFilterPanelChip_continent"] > .q-chip__icon--remove').click();
|
|
cy.dataCy('extra-community-cargoSupplierNickname').each(($el) => {
|
|
cy.wrap($el).should('contain.text', 'The farmer');
|
|
});
|
|
});
|
|
});
|