Skip to content

Commit

Permalink
Merge pull request #3712 from pmattmann/fix/e2e-prettier
Browse files Browse the repository at this point in the history
fix e2e-prettier
  • Loading branch information
usu authored Aug 15, 2023
2 parents 2b22502 + d11cf76 commit 66dc55f
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions e2e/specs/persistDashboardFilter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,49 @@ describe('Persist Dashboard Filter', () => {
cy.visit('/camps')
cy.get('a:contains("GRGR")').click()
cy.get('span.v-chip:contains("Category")').click()
clickOnItemWithLabel("Essen")
clickOnItemWithLabel("Lagersport")
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', 'category')
cy.url().should('include', '6adced5270de')
cy.url().should('include', '9af703a10a9c')
})
it('should remove Category-Filters from query', () => {
cy.login('[email protected]')
cy.visit('/camps')
cy.get('a:contains("GRGR")').click()
cy.get('span.v-chip:contains("Category")').click()
clickOnItemWithLabel("Essen")
clickOnItemWithLabel("Lagersport")
clickOnItemWithLabel('Essen')
clickOnItemWithLabel('Lagersport')
cy.wait(500)
clickOnItemWithLabel("Essen")
clickOnItemWithLabel("Lagersport")
clickOnItemWithLabel('Essen')
clickOnItemWithLabel('Lagersport')
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', 'category')
cy.url().should('not.include', '6adced5270de')
cy.url().should('not.include', '9af703a10a9c')
})
it('should add Filters to query', () => {
cy.login('[email protected]')
cy.visit('/camps')
cy.get('a:contains("GRGR")').click()
cy.get('span.v-chip:contains("Category")').click()
clickOnItemWithLabel("Essen")
clickOnItemWithLabel("Lagersport")
clickOnItemWithLabel('Essen')
clickOnItemWithLabel('Lagersport')
cy.wait(500)
cy.get('span.v-chip:contains("State")').click()
clickOnItemWithLabel("Geplant")
clickOnItemWithLabel("Coach OK")
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','category')
cy.url().should('include','6adced5270de')
cy.url().should('include','9af703a10a9c')

cy.url().should('include','progressLabel')
cy.url().should('include','56d24f5359de')
cy.url().should('include','c50da81e0cfc')
cy.url().should('include', 'progressLabel')
cy.url().should('include', '56d24f5359de')
cy.url().should('include', 'c50da81e0cfc')

cy.reload(true)
cy.wait(500)
Expand All @@ -60,8 +59,8 @@ describe('Persist Dashboard Filter', () => {
cy.visit('/camps')
cy.get('a:contains("GRGR")').click()
cy.get('span.v-chip:contains("Responsible")').click()
clickOnItemWithLabel("No responsibles")
cy.url().should('include','responsible=none')
clickOnItemWithLabel('No responsibles')
cy.url().should('include', 'responsible=none')
cy.wait(500)
cy.reload(true)
cy.wait(10000)
Expand All @@ -70,5 +69,7 @@ describe('Persist Dashboard Filter', () => {
})

function clickOnItemWithLabel(label) {
cy.get(`div.v-list-item:contains("${label}")`).find('.v-input--selection-controls__ripple').click()
cy.get(`div.v-list-item:contains("${label}")`)
.find('.v-input--selection-controls__ripple')
.click()
}

0 comments on commit 66dc55f

Please sign in to comment.