Skip to content

Commit c2df12b

Browse files
Bump cypress@13.3.0 (#162383)
## Summary Bump Cypress-related dependencies to the latest versions and update `renovate.json` to do it automatically in the future --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co> (cherry picked from commit 924664f) # Conflicts: # .buildkite/pipelines/pull_request/security_solution.yml # package.json # renovate.json # x-pack/plugins/apm/ftr_e2e/config.ts # x-pack/plugins/apm/ftr_e2e/cypress.config.ts # x-pack/plugins/apm/ftr_e2e/cypress_test_runner.ts # x-pack/plugins/observability_onboarding/e2e/cypress.config.ts # x-pack/plugins/observability_onboarding/e2e/ftr_config_runner.ts # x-pack/plugins/profiling/e2e/cypress.config.ts # x-pack/plugins/profiling/e2e/ftr_config_runner.ts # x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/detection_page_filters.cy.ts # x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/open_timeline.cy.ts # x-pack/test_serverless/functional/test_suites/observability/cypress/cypress.config.ts # yarn.lock
1 parent ea5a366 commit c2df12b

5 files changed

Lines changed: 42 additions & 52 deletions

File tree

.buildkite/pipelines/pull_request/security_solution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
queue: n2-4-spot
66
depends_on: build
77
timeout_in_minutes: 60
8-
parallelism: 10
8+
parallelism: 16
99
retry:
1010
automatic:
1111
- exit_status: '*'
@@ -18,7 +18,7 @@ steps:
1818
agents:
1919
queue: n2-4-spot
2020
depends_on: build
21-
timeout_in_minutes: 120
21+
timeout_in_minutes: 60
2222
parallelism: 1
2323
soft_fail: true
2424
artifact_paths:

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"**/@babel/traverse": "^7.21.2",
7777
"**/@babel/types": "^7.21.2",
7878
"**/@types/babel__generator/@babel/types": "^7.21.0",
79-
"**/@types/node": "18.17.1",
79+
"**/@types/node": "18.17.5",
8080
"**/@types/react": "^16.14.25",
8181
"**/@types/react-dom": "^16.9.8",
8282
"**/@typescript-eslint/utils": "5.62.0",
@@ -581,7 +581,7 @@
581581
"@types/mustache": "^0.8.31",
582582
"@types/ncp": "^2.0.1",
583583
"@types/nock": "^10.0.3",
584-
"@types/node": "18.17.1",
584+
"@types/node": "18.17.5",
585585
"@types/node-fetch": "2.6.4",
586586
"@types/node-forge": "^1.3.1",
587587
"@types/nodemailer": "^6.4.0",
@@ -680,12 +680,12 @@
680680
"cpy": "^8.1.1",
681681
"css-loader": "^3.4.2",
682682
"cssnano": "5.0.0",
683-
"cypress": "12.17.4",
684-
"cypress-axe": "^1.4.0",
683+
"cypress": "^13.3.0",
684+
"cypress-axe": "^1.5.0",
685685
"cypress-file-upload": "^5.0.8",
686686
"cypress-multi-reporters": "^1.6.3",
687687
"cypress-pipe": "^2.0.0",
688-
"cypress-real-events": "^1.10.0",
688+
"cypress-real-events": "^1.10.3",
689689
"debug": "^2.6.9",
690690
"delete-empty": "^2.0.0",
691691
"dependency-check": "^4.1.0",

x-pack/plugins/security_solution/cypress/scripts/run_cypress/parallel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ ${JSON.stringify(cyCustomEnv, null, 2)}
471471
renderSummaryTable(results as CypressCommandLine.CypressRunResult[]);
472472
const hasFailedTests = _.some(
473473
results,
474-
(result) => result?.status === 'finished' && result.totalFailed > 0
474+
(result) =>
475+
(result as CypressCommandLine.CypressFailedRunResult)?.status === 'failed' ||
476+
(result as CypressCommandLine.CypressRunResult)?.totalFailed
475477
);
476478
if (hasFailedTests) {
477479
throw createFailError('Not all tests passed');

x-pack/plugins/security_solution/cypress/scripts/run_cypress/print_run.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ export function renderSummaryTable(results: CypressCommandLine.CypressRunResult[
278278
const parsedResults = _.reduce(
279279
results,
280280
(acc: CypressCommandLine.CypressRunResult, result) => {
281-
acc.status = result.status;
282281
acc.startedTestsAt =
283282
acc.startedTestsAt && new Date(result.startedTestsAt) > new Date(acc.startedTestsAt)
284283
? acc.startedTestsAt
@@ -358,12 +357,8 @@ export function renderSummaryTable(results: CypressCommandLine.CypressRunResult[
358357

359358
_.each(runs, (run) => {
360359
const { spec, stats } = run;
361-
const ms = durationInMinutes(stats.duration);
362-
const formattedSpec = formatPath(spec.relativeToCommonRoot, getWidth(table2, 1));
363-
364-
if (run.skippedSpec) {
365-
return table2.push(['-', formattedSpec, color('SKIPPED', 'gray'), '-', '-', '-', '-', '-']);
366-
}
360+
const ms = durationInMinutes(stats?.duration ?? 0);
361+
const formattedSpec = formatPath(spec.relative, getWidth(table2, 1));
367362

368363
return table2.push([
369364
formatSymbolSummary(stats.failures),

yarn.lock

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,10 +1635,10 @@
16351635
find-test-names "^1.19.0"
16361636
globby "^11.0.4"
16371637

1638-
"@cypress/request@2.88.12":
1639-
version "2.88.12"
1640-
resolved "https://registry.yarnpkg.com/@cypress/request/-/request-2.88.12.tgz#ba4911431738494a85e93fb04498cb38bc55d590"
1641-
integrity sha512-tOn+0mDZxASFM+cuAP9szGUGPI1HwWVSvdzm7V4cCsPdFTx6qMj29CwaQmRAMIEhORIUBFBsYROYJcveK4uOjA==
1638+
"@cypress/request@^3.0.0":
1639+
version "3.0.1"
1640+
resolved "https://registry.yarnpkg.com/@cypress/request/-/request-3.0.1.tgz#72d7d5425236a2413bd3d8bb66d02d9dc3168960"
1641+
integrity sha512-TWivJlJi8ZDx2wGOw1dbLuHJKUYX7bWySw377nlnGOW3hP9/MUKIsEdXT/YngWxVdgNCHRBmFlBipE+5/2ZZlQ==
16421642
dependencies:
16431643
aws-sign2 "~0.7.0"
16441644
aws4 "^1.8.0"
@@ -1653,7 +1653,7 @@
16531653
json-stringify-safe "~5.0.1"
16541654
mime-types "~2.1.19"
16551655
performance-now "^2.1.0"
1656-
qs "~6.10.3"
1656+
qs "6.10.4"
16571657
safe-buffer "^5.1.2"
16581658
tough-cookie "^4.1.3"
16591659
tunnel-agent "^0.6.0"
@@ -6331,10 +6331,10 @@
63316331
dependencies:
63326332
"@types/node" "*"
63336333

6334-
"@types/node@*", "@types/node@18.17.1", "@types/node@>= 8", "@types/node@>=8.9.0", "@types/node@^10.1.0", "@types/node@^14.0.10 || ^16.0.0", "@types/node@^14.14.20 || ^16.0.0", "@types/node@^16.18.39":
6335-
version "18.17.1"
6336-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.1.tgz#84c32903bf3a09f7878c391d31ff08f6fe7d8335"
6337-
integrity sha512-xlR1jahfizdplZYRU59JlUx9uzF1ARa8jbhM11ccpCJya8kvos5jwdm2ZAgxSCwOl0fq21svP18EVwPBXMQudw==
6334+
"@types/node@*", "@types/node@18.17.5", "@types/node@>= 8", "@types/node@>=8.9.0", "@types/node@^10.1.0", "@types/node@^14.0.10 || ^16.0.0", "@types/node@^14.14.20 || ^16.0.0", "@types/node@^18.17.5":
6335+
version "18.17.5"
6336+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.5.tgz#c58b12bca8c2a437b38c15270615627e96dd0bc5"
6337+
integrity sha512-xNbS75FxH6P4UXTPUJp/zNPq6/xsfdJKussCWNOnz4aULWIRwMgP1LgaB5RiBnMX1DPCYenuqGZfnIAx5mbFLA==
63386338

63396339
"@types/nodemailer@^6.4.0":
63406340
version "6.4.0"
@@ -11127,10 +11127,10 @@ cyclist@~0.2.2:
1112711127
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640"
1112811128
integrity sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=
1112911129

11130-
cypress-axe@^1.4.0:
11131-
version "1.4.0"
11132-
resolved "https://registry.yarnpkg.com/cypress-axe/-/cypress-axe-1.4.0.tgz#e67482bfe9e740796bf77c7823f19781a8a2faff"
11133-
integrity sha512-Ut7NKfzjyKm0BEbt2WxuKtLkIXmx6FD2j0RwdvO/Ykl7GmB/qRQkwbKLk3VP35+83hiIr8GKD04PDdrTK5BnyA==
11130+
cypress-axe@^1.5.0:
11131+
version "1.5.0"
11132+
resolved "https://registry.yarnpkg.com/cypress-axe/-/cypress-axe-1.5.0.tgz#95082734583da77b51ce9b7784e14a442016c7a1"
11133+
integrity sha512-Hy/owCjfj+25KMsecvDgo4fC/781ccL+e8p+UUYoadGVM2ogZF9XIKbiM6KI8Y3cEaSreymdD6ZzccbI2bY0lQ==
1113411134

1113511135
cypress-file-upload@^5.0.8:
1113611136
version "5.0.8"
@@ -11150,21 +11150,19 @@ cypress-pipe@^2.0.0:
1115011150
resolved "https://registry.yarnpkg.com/cypress-pipe/-/cypress-pipe-2.0.0.tgz#577df7a70a8603d89a96dfe4092a605962181af8"
1115111151
integrity sha512-KW9s+bz4tFLucH3rBGfjW+Q12n7S4QpUSSyxiGrgPOfoHlbYWzAGB3H26MO0VTojqf9NVvfd5Kt0MH5XMgbfyg==
1115211152

11153-
cypress-real-events@^1.10.0:
11154-
version "1.10.0"
11155-
resolved "https://registry.yarnpkg.com/cypress-real-events/-/cypress-real-events-1.10.0.tgz#6827ae4667561471c2a86bb4be30061fa9b177b8"
11156-
integrity sha512-ALSdCiG+Rj3Sl6qooqTFeFGBxOIe8QJUcgIuJ6ZVBanTEijXRzqxqstMC2ZKfixqj1TyNjolyZU4zOoN/jtHpg==
11157-
dependencies:
11158-
prettier "^3.0.0"
11153+
cypress-real-events@^1.10.3:
11154+
version "1.10.3"
11155+
resolved "https://registry.yarnpkg.com/cypress-real-events/-/cypress-real-events-1.10.3.tgz#e2e949ea509cc4306df6c238de1a9982d67360e5"
11156+
integrity sha512-YN3fn+CJIAM638sE6uMvv2/n3PsWowdd0rOiN6ZoyezNAMyENfuQHvccLKZpN+apGfQZYetCml6QXLYgDid2fg==
1115911157

11160-
cypress@12.17.4:
11161-
version "12.17.4"
11162-
resolved "https://registry.yarnpkg.com/cypress/-/cypress-12.17.4.tgz#b4dadf41673058493fa0d2362faa3da1f6ae2e6c"
11163-
integrity sha512-gAN8Pmns9MA5eCDFSDJXWKUpaL3IDd89N9TtIupjYnzLSmlpVr+ZR+vb4U/qaMp+lB6tBvAmt7504c3Z4RU5KQ==
11158+
cypress@^13.3.0:
11159+
version "13.3.0"
11160+
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.3.0.tgz#d00104661b337d662c5a4280a051ee59f8aa1e31"
11161+
integrity sha512-mpI8qcTwLGiA4zEQvTC/U1xGUezVV4V8HQCOYjlEOrVmU1etVvxOjkCXHGwrlYdZU/EPmUiWfsO3yt1o+Q2bgw==
1116411162
dependencies:
11165-
"@cypress/request" "2.88.12"
11163+
"@cypress/request" "^3.0.0"
1116611164
"@cypress/xvfb" "^1.2.4"
11167-
"@types/node" "^16.18.39"
11165+
"@types/node" "^18.17.5"
1116811166
"@types/sinonjs__fake-timers" "8.1.1"
1116911167
"@types/sizzle" "^2.3.2"
1117011168
arch "^2.2.0"
@@ -22694,11 +22692,6 @@ prettier@^2.7.1:
2269422692
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
2269522693
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
2269622694

22697-
prettier@^3.0.0:
22698-
version "3.0.0"
22699-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae"
22700-
integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==
22701-
2270222695
pretty-bytes@^5.6.0:
2270322696
version "5.6.0"
2270422697
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"
@@ -23087,6 +23080,13 @@ q@^1.5.1:
2308723080
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
2308823081
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
2308923082

23083+
qs@6.10.4:
23084+
version "6.10.4"
23085+
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.4.tgz#6a3003755add91c0ec9eacdc5f878b034e73f9e7"
23086+
integrity sha512-OQiU+C+Ds5qiH91qh/mg0w+8nwQuLjM4F4M/PbmhDOoYehPh+Fb0bDjtR1sOvy7YKxvj28Y/M0PhP5uVX0kB+g==
23087+
dependencies:
23088+
side-channel "^1.0.4"
23089+
2309023090
qs@6.11.0:
2309123091
version "6.11.0"
2309223092
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
@@ -23101,13 +23101,6 @@ qs@^6.10.0, qs@^6.11.0, qs@^6.7.0:
2310123101
dependencies:
2310223102
side-channel "^1.0.4"
2310323103

23104-
qs@~6.10.3:
23105-
version "6.10.5"
23106-
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.5.tgz#974715920a80ff6a262264acd2c7e6c2a53282b4"
23107-
integrity sha512-O5RlPh0VFtR78y79rgcgKK4wbAI0C5zGVLztOIdpWX6ep368q5Hv6XRxDvXuZ9q3C6v+e3n8UfZZJw7IIG27eQ==
23108-
dependencies:
23109-
side-channel "^1.0.4"
23110-
2311123104
qs@~6.5.2:
2311223105
version "6.5.3"
2311323106
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad"

0 commit comments

Comments
 (0)