-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from Geoportail-Luxembourg/GSLUX-759-Fix-meta…
…data GSLUX-759: Fix metadata and legend missing for some layers
- Loading branch information
Showing
18 changed files
with
35,314 additions
and
38,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
cypress/e2e/layers-selection/layers-selection-layer-manager.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe('LayerManager', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
it('opens catalog when clicking button "+ Add layer"', () => { | ||
cy.get('[data-cy="myLayersButton"]').click() | ||
cy.get('[data-cy="addLayer"]').click() | ||
cy.get('[data-cy="catalog"]').should('be.visible') | ||
}) | ||
}) |
19 changes: 19 additions & 0 deletions
19
cypress/e2e/layers-selection/layers-selection-remote-layers.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
describe('Remote layers', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
it('adds layers from the remote layers modale', () => { | ||
cy.get('[data-cy="myLayersButton"]').click() | ||
cy.get('[data-cy="addRemoteLayer"]').click() | ||
cy.get('[data-cy="remoteLayerModalContent"]').find('button').eq(0).click() | ||
cy.get('[data-cy="remoteLayerModalContent"]').find('button').eq(1).click() | ||
cy.get( | ||
'[data-cy="parentLayerLabel-WMS||http://wmts1.geoportail.lu/opendata/service||Ortho"]' | ||
).click() | ||
cy.get( | ||
'[data-cy="layerLabel-WMS||http://wmts1.geoportail.lu/opendata/service||ortho_2001"]' | ||
).click() | ||
cy.get('[data-cy="myLayers"] > ul > li').should('have.length', 1) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
describe('Metadata', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
describe('When user displays layer info', () => { | ||
beforeEach(() => { | ||
cy.get('[data-cy="catalogButton"]').click() | ||
cy.get('[data-cy="layerMetadata-698"]').click() | ||
}) | ||
|
||
it('it show the popup with the layer metadata', () => { | ||
cy.get('[data-cy="metadata"]').find('span').eq(0).contains('Nom') | ||
cy.get('[data-cy="metadata"] .lux-legend') | ||
.find('h4') | ||
.eq(0) | ||
.contains('avec légende') | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.