Skip to content

Commit

Permalink
test: Cypress | Downgrade Cypress to 13.5.1 (#31011)
Browse files Browse the repository at this point in the history
## Description
- This PR downgrades Cypress from 13.6.4 to 13.5.1 due to frequent
WebSocket connection closed errors in CI

#### QA activity:
- [X] Added `Test Plan Approved` label after Cypress tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Adjusted the response timeout setting for network calls to improve
performance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
Aishwarya-U-R authored Feb 9, 2024
1 parent 88c95b4 commit ab51d5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/client/cypress/support/Pages/AssertHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class AssertHelper {
return aliasName;
}

public WaitForNetworkCall(aliasName: string, responseTimeout = 150000) {
public WaitForNetworkCall(aliasName: string, responseTimeout = 100000) {
// cy.wait(aliasName).then(($apiCall: any) => {
// expect($apiCall.response.body.responseMeta.status).to.eq(expectedStatus);
// });
Expand Down
2 changes: 1 addition & 1 deletion app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"compression-webpack-plugin": "^10.0.0",
"cra-bundle-analyzer": "^0.1.0",
"cy-verify-downloads": "^0.0.5",
"cypress": "13.6.4",
"cypress": "13.5.1",
"cypress-file-upload": "^4.1.1",
"cypress-image-snapshot": "^4.0.1",
"cypress-mochawesome-reporter": "^3.5.1",
Expand Down
19 changes: 10 additions & 9 deletions app/client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11078,12 +11078,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^18.0.0":
version: 18.19.14
resolution: "@types/node@npm:18.19.14"
"@types/node@npm:^18.0.0, @types/node@npm:^18.17.5":
version: 18.19.15
resolution: "@types/node@npm:18.19.15"
dependencies:
undici-types: ~5.26.4
checksum: 3d42b50e649f18c6ca7044714eaeb51ba5fda463c845eeb1973bcbbfcab8e93179501fbf865e675cb0c7a5e59f7ea18eca8296b52c2455c856aa45c77ae815dc
checksum: 8ebad6b0a010ff01a841c2d99a464993ee22348aff476e95276c17a9a72f336f4a395940c59c4f21e10ef50ed79a7811a60d562099a87c476d241e8b37e3cdd5
languageName: node
linkType: hard

Expand Down Expand Up @@ -13187,7 +13187,7 @@ __metadata:
craco-babel-loader: ^1.0.4
cssnano: ^6.0.1
cy-verify-downloads: ^0.0.5
cypress: 13.6.4
cypress: 13.5.1
cypress-file-upload: ^4.1.1
cypress-image-snapshot: ^4.0.1
cypress-log-to-output: ^1.1.2
Expand Down Expand Up @@ -16743,12 +16743,13 @@ __metadata:
languageName: node
linkType: hard

"cypress@npm:13.6.4":
version: 13.6.4
resolution: "cypress@npm:13.6.4"
"cypress@npm:13.5.1":
version: 13.5.1
resolution: "cypress@npm:13.5.1"
dependencies:
"@cypress/request": ^3.0.0
"@cypress/xvfb": ^1.2.4
"@types/node": ^18.17.5
"@types/sinonjs__fake-timers": 8.1.1
"@types/sizzle": ^2.3.2
arch: ^2.2.0
Expand Down Expand Up @@ -16791,7 +16792,7 @@ __metadata:
yauzl: ^2.10.0
bin:
cypress: bin/cypress
checksum: 39daef291ccd18d7d724d7f8c1f5a2ed2b3d24c5c1eab1e00642c5db232fcc4dbd3fd30db3a2dce4e8b737d510355d135eb43034d800198d2867ecde4cdd696a
checksum: 9fdf97f6eaee747f5fa290e16d9164ea4926c65c6af7cc21d4ed6c442d8d98533ceff7dafe4e7b6917899bda03505abfb5042f18acda2c66811b0733393bbba3
languageName: node
linkType: hard

Expand Down

0 comments on commit ab51d5f

Please sign in to comment.