Browse Source

cypress: increase location filter timeout

Olivier Massot 4 years ago
parent
commit
e57ef23d75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/cypress/integration/structures/index.spec.js

+ 2 - 2
tests/cypress/integration/structures/index.spec.js

@@ -119,7 +119,7 @@ describe('Test the /structures page', () => {
 
   it('The results shall be filtered according to the location filter', () => {
     cy.getByLabel('input:visible', 'Où ?').type('strasbourg')
-    cy.get('.v-list-item__title').contains(/Strasbourg \(\d{5}\)/).click()
+    cy.get('.v-list-item__title').contains(/Strasbourg \(\d{5}\)/, { timeout: 8000 }).click()
     cy.get('button').contains('Rechercher').click()
 
     // we check that there is not a postal code that is not like '67xxx'
@@ -172,7 +172,7 @@ describe('Test the /structures page', () => {
   it('Reinitialize shall clear each filter field, display all results, and reset map bounds (in both map and list view)', () => {
     cy.getByLabel('input', 'Quoi ?').type('some long text that will hopefully match no result')
     cy.getByLabel('input:visible', 'Où ?').type('vesoul')
-    cy.get('.v-list-item div', { timeout: 10000 }).contains(/Vesoul \(\d{5}\)/).click()
+    cy.get('.v-list-item div').contains(/Vesoul \(\d{5}\)/, { timeout: 8000 }).click()
     cy.getByLabel('input:visible', 'Type').click()
     cy.get('.v-list-item').contains('Big band').click()
     cy.getByLabel('input:visible', 'Département').click()