diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index afa0663a8..17c957a50 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -547,6 +547,7 @@ watch(route, () => { }, ]" v-text="col.value" + :data-cy="`extra-community-${col.name}`" /> { + 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'); + }); + }); +});