Skip to content

Commit

Permalink
test: remove useless selector in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Nov 4, 2024
1 parent 936e2a9 commit df14897
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/layers-selection/layers-selection-catalog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe('Catalogue', () => {
cy.get('[data-cy="catalogButton"]').click()
cy.get('[data-cy="parentLayerLabel-242"]').find('button').first().click()
cy.get('[data-cy="parentLayerLabel-309"]').click()
cy.get('[data-cy^="layerLabel-269"]').click()
cy.get('[data-cy^="layerLabel-349"]').click()
cy.get('[data-cy^="layerLabel-329"]').click()
cy.get('[data-cy="layerLabel-269"]').click()
cy.get('[data-cy="layerLabel-349"]').click()
cy.get('[data-cy="layerLabel-329"]').click()
})

it('adds selected layers to the map and to the layer manager', () => {
Expand Down
12 changes: 6 additions & 6 deletions cypress/e2e/legends/legends.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ describe('Legends', () => {
cy.get('[data-cy="catalogButton"]').click()
cy.get('[data-cy="parentLayerLabel-242"]').find('button').first().click()
cy.get('[data-cy="parentLayerLabel-309"]').click()
cy.get('[data-cy^="layerLabel-269"]').click()
cy.get('[data-cy^="layerLabel-349"]').click()
cy.get('[data-cy^="layerLabel-329"]').click()
cy.get('[data-cy="layerLabel-269"]').click()
cy.get('[data-cy="layerLabel-349"]').click()
cy.get('[data-cy="layerLabel-329"]').click()
cy.get('[data-cy="legendsOpenClose"] > button').click()
})

Expand Down Expand Up @@ -67,9 +67,9 @@ describe('Legends', () => {

cy.get('[data-cy="parentLayerLabel-242"]').find('button').first().click()
cy.get('[data-cy="parentLayerLabel-309"]').click()
cy.get('[data-cy^="layerLabel-269"]').click()
cy.get('[data-cy^="layerLabel-349"]').click()
cy.get('[data-cy^="layerLabel-329"]').click()
cy.get('[data-cy="layerLabel-269"]').click()
cy.get('[data-cy="layerLabel-349"]').click()
cy.get('[data-cy="layerLabel-329"]').click()
cy.get('[data-cy="legendsOpenClose"] > button').click()
})

Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/permalink/layers-comparator.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ describe('Permalink/State persistor - Layer comparator (lc & sliderRatio)', () =
cy.get('[data-cy="catalogButton"]').click()
cy.get('[data-cy="parentLayerLabel-242"]').find('button').first().click()
cy.get('[data-cy="parentLayerLabel-309"]').click()
cy.get('[data-cy^="layerLabel-269"]').click()
cy.get('[data-cy^="layerLabel-349"]').click()
cy.get('[data-cy^="layerLabel-329"]').click()
cy.get('[data-cy="layerLabel-269"]').click()
cy.get('[data-cy="layerLabel-349"]').click()
cy.get('[data-cy="layerLabel-329"]').click()
cy.get('[data-cy="myLayersButton"]').click()
})

Expand Down

0 comments on commit df14897

Please sign in to comment.