Browse Source

fix cypress tests

Olivier Massot 4 years ago
parent
commit
5d3ec5f385
1 changed files with 3 additions and 4 deletions
  1. 3 4
      test/cypress/integration/structures/index.spec.js

+ 3 - 4
test/cypress/integration/structures/index.spec.js

@@ -6,7 +6,7 @@ describe('Test the /structures page', () => {
 
     // wait for the page to be completely loaded
     cy.get('.structure-card', { timeout: 8000 })
-    cy.contains('Nos Structures adhérentes')
+    cy.contains('Nos structures adhérentes')
   })
 
   it('Map, filters, and all results shall display by default', () => {
@@ -46,9 +46,8 @@ describe('Test the /structures page', () => {
   it('If view is set on list mode, map shall be hidden', () => {
     cy.get('button').contains('Liste').click()
 
-    // map shall not be visible in list view
-    cy.get('#map', { timeout: 8000 })
-      .should('not.be.visible')
+    // map shall not exists in list view
+    cy.get('#map').should('not.exist')
 
     // results should still be visible
     cy.get('.structure-card')