Skip to content

Commit

Permalink
Fix cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed May 9, 2024
1 parent b5d5639 commit 56cca48
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,9 @@ context('Sidebars > Regulatory Layers', () => {
cy.clickButton('Ajouter 1 zone')

// Show metadata the only "Armor CSJ Dragues" regulation zone
cy.getDataCy('regulatory-search-clean-input').click()
cy.contains('Mes zones réglementaires').parent().contains('Armor CSJ Dragues').click()
cy.contains('Mes zones réglementaires')
.parent()
.contains('Secteur 3')
.parent()
.find('span')
.last()
.find('svg')
.first()
.click()
cy.contains('Secteur 3').parent().find('[title="Afficher la réglementation"]').click()

// Check a few of its metadata values
cy.contains('Reg. MEMN').should('be.visible')
Expand Down

0 comments on commit 56cca48

Please sign in to comment.