From d9224bc5132855e980f753a6b220a87b78e9a99c Mon Sep 17 00:00:00 2001 From: BacLuc Date: Sun, 20 Aug 2023 17:48:01 +0200 Subject: [PATCH] e2e: adapt persistDashboardFilter.cy.js to language switch and new ids --- e2e/specs/persistDashboardFilter.cy.js | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/e2e/specs/persistDashboardFilter.cy.js b/e2e/specs/persistDashboardFilter.cy.js index 7c750ccb48..7fe1e6f3a9 100644 --- a/e2e/specs/persistDashboardFilter.cy.js +++ b/e2e/specs/persistDashboardFilter.cy.js @@ -3,19 +3,19 @@ describe('Persist Dashboard Filter', () => { cy.login('test@example.com') cy.visit('/camps') cy.get('a:contains("GRGR")').click() - cy.get('span.v-chip:contains("Category")').click() + cy.get('span.v-chip:contains("Kategorie")').click() clickOnItemWithLabel('Essen') clickOnItemWithLabel('Lagersport') cy.wait(500) cy.url().should('include', 'category') - cy.url().should('include', '6adced5270de') - cy.url().should('include', '9af703a10a9c') + cy.url().should('include', 'ebfd46a1c181') + cy.url().should('include', 'a023e85227ac') }) it('should remove Category-Filters from query', () => { cy.login('test@example.com') cy.visit('/camps') cy.get('a:contains("GRGR")').click() - cy.get('span.v-chip:contains("Category")').click() + cy.get('span.v-chip:contains("Kategorie")').click() clickOnItemWithLabel('Essen') clickOnItemWithLabel('Lagersport') cy.wait(500) @@ -24,47 +24,47 @@ describe('Persist Dashboard Filter', () => { cy.wait(500) cy.url().should('not.include', 'category') - cy.url().should('not.include', '6adced5270de') - cy.url().should('not.include', '9af703a10a9c') + cy.url().should('not.include', 'ebfd46a1c181') + cy.url().should('not.include', 'a023e85227ac') }) it('should add Filters to query', () => { cy.login('test@example.com') cy.visit('/camps') cy.get('a:contains("GRGR")').click() - cy.get('span.v-chip:contains("Category")').click() + cy.get('span.v-chip:contains("Kategorie")').click() clickOnItemWithLabel('Essen') clickOnItemWithLabel('Lagersport') cy.wait(500) - cy.get('span.v-chip:contains("State")').click() + cy.get('span.v-chip:contains("Status")').click() clickOnItemWithLabel('Geplant') clickOnItemWithLabel('Coach OK') cy.wait(500) cy.url().should('include', 'category') - cy.url().should('include', '6adced5270de') - cy.url().should('include', '9af703a10a9c') + cy.url().should('include', 'ebfd46a1c181') + cy.url().should('include', 'a023e85227ac') cy.url().should('include', 'progressLabel') - cy.url().should('include', '56d24f5359de') - cy.url().should('include', 'c50da81e0cfc') + cy.url().should('include', '82547049ea38') + cy.url().should('include', '332e0c387141') cy.reload(true) cy.wait(500) - cy.get('span.v-chip:contains("Category: ES or LS")') - cy.get('span.v-chip:contains("State: Geplant or Coach OK")') + cy.get('span.v-chip:contains("Kategorie: ES oder LS")') + cy.get('span.v-chip:contains("Status: Geplant oder Coach OK")') }) it('should add Responsible-Filters to query', () => { cy.login('test@example.com') cy.visit('/camps') cy.get('a:contains("GRGR")').click() - cy.get('span.v-chip:contains("Responsible")').click() - clickOnItemWithLabel('No responsibles') + cy.get('span.v-chip:contains("Verantwortlich")').click() + clickOnItemWithLabel('Keine Verantwortlichen') cy.url().should('include', 'responsible=none') cy.wait(500) cy.reload(true) cy.wait(10000) - cy.get('span.v-chip:contains("Responsible: No responsibles")') + cy.get('span.v-chip:contains("Verantwortlich: Keine Verantwortlichen")') }) })