Skip to content

Commit

Permalink
[Test] fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Oct 28, 2024
1 parent 082eff0 commit d756538
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FAKE_MAPBOX_RESPONSE } from '../../constants'

context('Main Window > AMP Layers', () => {
context('LayerTree > AMP Layers', () => {
beforeEach(() => {
cy.intercept('GET', 'https://api.mapbox.com/**', FAKE_MAPBOX_RESPONSE)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,22 @@ context('LayerTree > Regulatory Layers', () => {

cy.getDataCy('my-regulatory-layers').click() // zoom on the regulation's zone
cy.clickButton('Effacer les résultats de la recherche')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Cacher la/les zone(s)')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Afficher la/les zone(s)')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Cacher la zone')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Afficher la zone')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Supprimer la zone de ma sélection')
cy.wait(250)
getBaseLayerSnapShot()
cy.getDataCy('my-regulatory-layers-list').contains('Aucune zone sélectionnée')
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ context('LayerTree > Vigilance Area Layers', () => {
cy.clickButton('Sélectionner la zone')
cy.getDataCy('my-vigilance-areas-layers').click()
cy.clickButton('Effacer les résultats de la recherche')
cy.wait(250)
getBaseLayerSnapShot()

cy.clickButton('Cacher la zone')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Afficher la zone')
cy.wait(250)
getBaseLayerSnapShot()
cy.clickButton('Supprimer la zone de ma sélection')
cy.wait(250)
getBaseLayerSnapShot()
cy.getDataCy('my-vigilance-area-zones-list').contains('Aucune zone sélectionnée')
})
Expand Down

0 comments on commit d756538

Please sign in to comment.