From 8a73d55d9c6daf4e379c9f7f2c3e941b8bce5ef7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:49:54 +0300 Subject: [PATCH] Bump Playwright (#12302) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas --- .circleci/config.yml | 10 +++++----- package.json | 2 +- pnpm-lock.yaml | 24 ++++++++++++------------ test/e2e/.mocharc.js | 2 +- test/e2e/index.test.ts | 5 ++++- test/package.json | 2 +- test/regressions/.mocharc.js | 2 +- test/regressions/index.test.js | 2 +- 8 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 129d90984ae76..272d900fdd547 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -193,7 +193,7 @@ jobs: test_browser: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.41.2-focal + - image: mcr.microsoft.com/playwright:v1.43.1-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` steps: @@ -226,7 +226,7 @@ jobs: test_e2e: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.41.2-focal + - image: mcr.microsoft.com/playwright:v1.43.1-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` steps: @@ -239,7 +239,7 @@ jobs: test_e2e_website: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.41.2-focal + - image: mcr.microsoft.com/playwright:v1.43.1-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` steps: @@ -254,7 +254,7 @@ jobs: test_regressions: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.41.2-focal + - image: mcr.microsoft.com/playwright:v1.43.1-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` steps: @@ -270,7 +270,7 @@ jobs: run_danger: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.41.2-focal + - image: mcr.microsoft.com/playwright:v1.43.1-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` steps: diff --git a/package.json b/package.json index e6bf37bac1329..c07ab6d06078e 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "@next/eslint-plugin-next": "14.0.4", "@octokit/plugin-retry": "^6.0.1", "@octokit/rest": "^20.0.2", - "@playwright/test": "1.41.2", + "@playwright/test": "1.43.1", "@testing-library/react": "^14.2.1", "@types/babel__core": "^7.20.5", "@types/chai": "^4.3.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e76c23e8e0be..41d6b07b9fc9e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -108,8 +108,8 @@ importers: specifier: ^20.0.2 version: 20.0.2 '@playwright/test': - specifier: 1.41.2 - version: 1.41.2 + specifier: 1.43.1 + version: 1.43.1 '@testing-library/react': specifier: ^14.2.1 version: 14.2.2(react-dom@18.2.0)(react@18.2.0) @@ -1294,8 +1294,8 @@ importers: specifier: workspace:* version: link:../packages/x-date-pickers-pro/build '@playwright/test': - specifier: 1.41.2 - version: 1.41.2 + specifier: 1.43.1 + version: 1.43.1 '@react-spring/web': specifier: ^9.7.3 version: 9.7.3(react-dom@18.2.0)(react@18.2.0) @@ -4547,12 +4547,12 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dev: true - /@playwright/test@1.41.2: - resolution: {integrity: sha512-qQB9h7KbibJzrDpkXkYvsmiDJK14FULCCZgEcoe2AvFAS64oCirWTwzTlAYEbKaRxWs5TFesE1Na6izMv3HfGg==} + /@playwright/test@1.43.1: + resolution: {integrity: sha512-HgtQzFgNEEo4TE22K/X7sYTYNqEMMTZmFS8kTq6m8hXj+m1D8TgwgIbumHddJa9h4yl4GkKb8/bgAl2+g7eDgA==} engines: {node: '>=16'} hasBin: true dependencies: - playwright: 1.41.2 + playwright: 1.43.1 dev: true /@polka/url@1.0.0-next.24: @@ -14566,18 +14566,18 @@ packages: dependencies: find-up: 3.0.0 - /playwright-core@1.41.2: - resolution: {integrity: sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==} + /playwright-core@1.43.1: + resolution: {integrity: sha512-EI36Mto2Vrx6VF7rm708qSnesVQKbxEWvPrfA1IPY6HgczBplDx7ENtx+K2n4kJ41sLLkuGfmb0ZLSSXlDhqPg==} engines: {node: '>=16'} hasBin: true dev: true - /playwright@1.41.2: - resolution: {integrity: sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==} + /playwright@1.43.1: + resolution: {integrity: sha512-V7SoH0ai2kNt1Md9E3Gwas5B9m8KR2GVvwZnAI6Pg0m3sh7UvgiYhRrhsziCmqMJNouPckiOhk8T+9bSAK0VIA==} engines: {node: '>=16'} hasBin: true dependencies: - playwright-core: 1.41.2 + playwright-core: 1.43.1 optionalDependencies: fsevents: 2.3.2 dev: true diff --git a/test/e2e/.mocharc.js b/test/e2e/.mocharc.js index e10f844d06e18..5f5eed680baeb 100644 --- a/test/e2e/.mocharc.js +++ b/test/e2e/.mocharc.js @@ -2,7 +2,7 @@ module.exports = { extension: ['js', 'ts', 'tsx'], recursive: true, slow: 500, - timeout: (process.env.CIRCLECI === 'true' ? 4 : 2) * 1000, // Circle CI has low-performance CPUs. + timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs. reporter: 'dot', require: [require.resolve('../utils/setupBabel')], }; diff --git a/test/e2e/index.test.ts b/test/e2e/index.test.ts index 5fefbc785d5a5..23a9d81474015 100644 --- a/test/e2e/index.test.ts +++ b/test/e2e/index.test.ts @@ -716,7 +716,10 @@ async function initializeEnvironment( it('should focus the first field section after clearing a value in v6 input', async () => { await renderFixture('DatePicker/BasicClearableDesktopDatePicker'); - await page.getByRole('textbox').fill('2'); + const textbox = page.getByRole('textbox'); + // locator.fill('2') does not work reliably for this case in all browsers + await textbox.focus(); + await textbox.press('2'); await page.getByRole('button', { name: 'Clear value' }).click(); // firefox does not support document.getSelection().toString() on input elements diff --git a/test/package.json b/test/package.json index 5a940006b5151..c256ea8926a4d 100644 --- a/test/package.json +++ b/test/package.json @@ -15,7 +15,7 @@ "@mui/x-date-pickers": "workspace:*", "@mui/x-date-pickers-pro": "workspace:*", "@react-spring/web": "^9.7.3", - "@playwright/test": "1.41.2", + "@playwright/test": "1.43.1", "@types/chai": "^4.3.12", "@types/prop-types": "^15.7.11", "@types/react": "18.2.60", diff --git a/test/regressions/.mocharc.js b/test/regressions/.mocharc.js index 1070a73a55e73..25ded7571a03a 100644 --- a/test/regressions/.mocharc.js +++ b/test/regressions/.mocharc.js @@ -1,6 +1,6 @@ module.exports = { recursive: true, slow: 500, - timeout: (process.env.CIRCLECI === 'true' ? 4 : 2) * 1000, // Circle CI has low-performance CPUs. + timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs. require: [require.resolve('@babel/register')], }; diff --git a/test/regressions/index.test.js b/test/regressions/index.test.js index bc6b774a2ecd5..cb4971f830104 100644 --- a/test/regressions/index.test.js +++ b/test/regressions/index.test.js @@ -207,7 +207,7 @@ async function main() { return new Promise((resolve, reject) => { // See https://ffmpeg.org/ffmpeg-devices.html#x11grab - const args = `-y -f x11grab -framerate 1 -video_size 460x400 -i :99.0+90,85 -vframes 1 ${screenshotPath}`; + const args = `-y -f x11grab -framerate 1 -video_size 460x400 -i :99.0+90,95 -vframes 1 ${screenshotPath}`; const ffmpeg = childProcess.spawn('ffmpeg', args.split(' ')); ffmpeg.on('close', (code) => {