diff --git a/site/cypress/integration/mon-entreprise/english/navigation.js b/site/cypress/integration/mon-entreprise/english/navigation.js index a61fca10b..df422d6ec 100644 --- a/site/cypress/integration/mon-entreprise/english/navigation.js +++ b/site/cypress/integration/mon-entreprise/english/navigation.js @@ -34,8 +34,6 @@ describe(`Navigation to income simulator using company name (${ 'geo.api.gouv.fr', ] beforeEach(function () { - cy.clearLocalStorage() // Try to avoid flaky tests - pendingRequests = new Set() responses = {} cy.setInterceptResponses( @@ -44,6 +42,7 @@ describe(`Navigation to income simulator using company name (${ hostnamesToRecord, GERER_FIXTURES_FOLDER ) + cy.clearLocalStorage() // Try to avoid flaky tests cy.visit('/') }) afterEach(function () { diff --git a/site/package.json b/site/package.json index 9c2fb5ac6..82e412267 100644 --- a/site/package.json +++ b/site/package.json @@ -129,7 +129,7 @@ "@types/styled-components": "^5.1.24", "@vitejs/plugin-legacy": "^1.7.1", "@vitejs/plugin-react": "^1.2.0", - "cypress": "^7.7.0", + "cypress": "^9.5.4", "cypress-plugin-tab": "^1.0.5", "cypress-wait-until": "^1.7.2", "dotenv": "=8.1.0", diff --git a/yarn.lock b/yarn.lock index 389db8583..c55a4fa51 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1741,6 +1741,13 @@ __metadata: languageName: node linkType: hard +"@colors/colors@npm:1.5.0": + version: 1.5.0 + resolution: "@colors/colors@npm:1.5.0" + checksum: d64d5260bed1d5012ae3fc617d38d1afc0329fec05342f4e6b838f46998855ba56e0a73833f4a80fa8378c84810da254f76a8a19c39d038260dc06dc4e007425 + languageName: node + linkType: hard + "@cspotcode/source-map-consumer@npm:0.8.0": version: 0.8.0 resolution: "@cspotcode/source-map-consumer@npm:0.8.0" @@ -1757,7 +1764,7 @@ __metadata: languageName: node linkType: hard -"@cypress/request@npm:^2.88.5": +"@cypress/request@npm:^2.88.10": version: 2.88.10 resolution: "@cypress/request@npm:2.88.10" dependencies: @@ -5845,10 +5852,10 @@ __metadata: languageName: node linkType: hard -"@types/sinonjs__fake-timers@npm:^6.0.2": - version: 6.0.4 - resolution: "@types/sinonjs__fake-timers@npm:6.0.4" - checksum: 200cb24235409964269465e8a94ad735ec8bab98f3b2405cd6351fa6f6399be268cbbd4e824c9d361d9431ae11070cff4c3b6400b18aff03cb7933985853c0c9 +"@types/sinonjs__fake-timers@npm:8.1.1": + version: 8.1.1 + resolution: "@types/sinonjs__fake-timers@npm:8.1.1" + checksum: ca09d54d47091d87020824a73f026300fa06b17cd9f2f9b9387f28b549364b141ef194ee28db762f6588de71d8febcd17f753163cb7ea116b8387c18e80ebd5c languageName: node linkType: hard @@ -7820,6 +7827,16 @@ __metadata: languageName: node linkType: hard +"buffer@npm:^5.6.0": + version: 5.7.1 + resolution: "buffer@npm:5.7.1" + dependencies: + base64-js: ^1.3.1 + ieee754: ^1.1.13 + checksum: e2cf8429e1c4c7b8cbd30834ac09bd61da46ce35f5c22a78e6c2f04497d6d25541b16881e30a019c6fd3154150650ccee27a308eff3e26229d788bbdeb08ab84 + languageName: node + linkType: hard + "builtin-status-codes@npm:^3.0.0": version: 3.0.0 resolution: "builtin-status-codes@npm:3.0.0" @@ -8305,7 +8322,7 @@ __metadata: languageName: node linkType: hard -"cli-table3@npm:^0.6.1, cli-table3@npm:~0.6.0": +"cli-table3@npm:^0.6.1": version: 0.6.1 resolution: "cli-table3@npm:0.6.1" dependencies: @@ -8318,6 +8335,19 @@ __metadata: languageName: node linkType: hard +"cli-table3@npm:~0.6.1": + version: 0.6.2 + resolution: "cli-table3@npm:0.6.2" + dependencies: + "@colors/colors": 1.5.0 + string-width: ^4.2.0 + dependenciesMeta: + "@colors/colors": + optional: true + checksum: 2f82391698b8a2a2a5e45d2adcfea5d93e557207f90455a8d4c1aac688e9b18a204d9eb4ba1d322fa123b17d64ea3dc5e11de8b005529f3c3e7dbeb27cb4d9be + languageName: node + linkType: hard + "cli-truncate@npm:^2.1.0": version: 2.1.0 resolution: "cli-truncate@npm:2.1.0" @@ -9028,23 +9058,24 @@ __metadata: languageName: node linkType: hard -"cypress@npm:^7.7.0": - version: 7.7.0 - resolution: "cypress@npm:7.7.0" +"cypress@npm:^9.5.4": + version: 9.5.4 + resolution: "cypress@npm:9.5.4" dependencies: - "@cypress/request": ^2.88.5 + "@cypress/request": ^2.88.10 "@cypress/xvfb": ^1.2.4 "@types/node": ^14.14.31 - "@types/sinonjs__fake-timers": ^6.0.2 + "@types/sinonjs__fake-timers": 8.1.1 "@types/sizzle": ^2.3.2 arch: ^2.2.0 blob-util: ^2.0.2 bluebird: ^3.7.2 + buffer: ^5.6.0 cachedir: ^2.3.0 chalk: ^4.1.0 check-more-types: ^2.24.0 cli-cursor: ^3.1.0 - cli-table3: ~0.6.0 + cli-table3: ~0.6.1 commander: ^5.1.0 common-tags: ^1.8.0 dayjs: ^1.10.4 @@ -9063,19 +9094,19 @@ __metadata: listr2: ^3.8.3 lodash: ^4.17.21 log-symbols: ^4.0.0 - minimist: ^1.2.5 + minimist: ^1.2.6 ospath: ^1.2.2 pretty-bytes: ^5.6.0 - ramda: ~0.27.1 + proxy-from-env: 1.0.0 request-progress: ^3.0.0 + semver: ^7.3.2 supports-color: ^8.1.1 tmp: ~0.2.1 untildify: ^4.0.0 - url: ^0.11.0 yauzl: ^2.10.0 bin: cypress: bin/cypress - checksum: 8ad8700d448949941801b6ff25549ef93e593b659b1605a936a8021032acb50f1849c9b8f8d1ba7df713de803b8203a1978231ccd0443f2e819bd9cf1b23d562 + checksum: 55c61f33db5658da8e5af5c6de64f40a85aeb7cba1219f2772675406f6431b7aa7512e13173d0f475af026fffe9878289229b4f5c74d307eac22d8f51fc29f77 languageName: node linkType: hard @@ -12672,7 +12703,7 @@ __metadata: languageName: node linkType: hard -"ieee754@npm:^1.1.4, ieee754@npm:^1.2.1": +"ieee754@npm:^1.1.13, ieee754@npm:^1.1.4, ieee754@npm:^1.2.1": version: 1.2.1 resolution: "ieee754@npm:1.2.1" checksum: 5144c0c9815e54ada181d80a0b810221a253562422e7c6c3a60b1901154184f49326ec239d618c416c1c5945a2e197107aee8d986a3dd836b53dffefd99b5e7e @@ -16344,6 +16375,13 @@ __metadata: languageName: node linkType: hard +"proxy-from-env@npm:1.0.0": + version: 1.0.0 + resolution: "proxy-from-env@npm:1.0.0" + checksum: 292e28d1de0c315958d71d8315eb546dd3cd8c8cbc2dab7c54eeb9f5c17f421771964ad0b5e1f77011bab2305bdae42e1757ce33bdb1ccc3e87732322a8efcf1 + languageName: node + linkType: hard + "prr@npm:~1.0.1": version: 1.0.1 resolution: "prr@npm:1.0.1" @@ -16550,7 +16588,7 @@ __metadata: languageName: node linkType: hard -"ramda@npm:^0.27.0, ramda@npm:^0.27.1, ramda@npm:~0.27.1": +"ramda@npm:^0.27.0, ramda@npm:^0.27.1": version: 0.27.2 resolution: "ramda@npm:0.27.2" checksum: 28d6735dd1eea1a796c56cf6111f3673c6105bbd736e521cdd7826c46a18eeff337c2dba4668f6eed990d539b9961fd6db19aa46ccc1530ba67a396c0a9f580d @@ -18191,7 +18229,7 @@ __metadata: "@vitejs/plugin-legacy": ^1.7.1 "@vitejs/plugin-react": ^1.2.0 algoliasearch: ^4.10.2 - cypress: ^7.7.0 + cypress: ^9.5.4 cypress-plugin-tab: ^1.0.5 cypress-wait-until: ^1.7.2 dotenv: =8.1.0