diff --git a/.circleci/config.yml b/.circleci/config.yml index 6e1c939dc09215..4336a37e12fe6b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -379,7 +379,7 @@ jobs: <<: *default-job resource_class: 'medium+' docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: @@ -407,7 +407,7 @@ jobs: test_e2e: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: @@ -419,7 +419,7 @@ jobs: # NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: @@ -432,7 +432,7 @@ jobs: test_profile: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: @@ -457,7 +457,7 @@ jobs: test_regressions: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: @@ -524,7 +524,7 @@ jobs: test_bundling_next_webpack4: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/ steps: - checkout: @@ -542,7 +542,7 @@ jobs: test_bundling_next_webpack5: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/ steps: - checkout: @@ -560,7 +560,7 @@ jobs: test_bundling_create_react_app: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/ steps: - checkout: @@ -578,7 +578,7 @@ jobs: test_bundling_snowpack: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/ steps: - checkout: @@ -596,7 +596,7 @@ jobs: test_bundling_vite: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/vite/ steps: - checkout: @@ -614,7 +614,7 @@ jobs: test_bundling_esbuild: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/ steps: - checkout: @@ -632,7 +632,7 @@ jobs: test_bundling_gatsby: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble environment: GATSBY_CPU_COUNT: '3' working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/ @@ -733,7 +733,7 @@ jobs: test_benchmark: <<: *default-job docker: - - image: mcr.microsoft.com/playwright:v1.48.2-focal + - image: mcr.microsoft.com/playwright:v1.49.0-noble steps: - checkout - install_js: diff --git a/apps/pigment-css-vite-app/package.json b/apps/pigment-css-vite-app/package.json index 74bb42182fa8c4..db01eecc2d2515 100644 --- a/apps/pigment-css-vite-app/package.json +++ b/apps/pigment-css-vite-app/package.json @@ -17,7 +17,7 @@ "@mui/system": "workspace:^", "@mui/utils": "workspace:^", "clsx": "^2.1.1", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-error-boundary": "^5.0.0", diff --git a/benchmark/package.json b/benchmark/package.json index aa75e01be8731f..efd95d8757549c 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -25,7 +25,7 @@ "express": "^4.21.2", "fs-extra": "^11.3.0", "jss": "^10.10.0", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "prop-types": "^15.8.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/docs/package.json b/docs/package.json index 7d354e0e0f6aa9..ae0d1b0e1c12f2 100644 --- a/docs/package.json +++ b/docs/package.json @@ -136,7 +136,7 @@ "cross-fetch": "^4.1.0", "gm": "^1.25.0", "marked": "^15.0.6", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "prettier": "^3.4.2", "tailwindcss": "^3.4.17", "yargs": "^17.7.2" diff --git a/package.json b/package.json index 06f3310271fc8d..59fbe08c7491af 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,7 @@ "@googleapis/sheets": "^9.3.1", "@netlify/functions": "^3.0.0", "@slack/bolt": "^4.2.0", + "babel-plugin-transform-import-meta": "^2.3.2", "execa": "^9.5.2", "google-auth-library": "^9.15.1" }, @@ -125,7 +126,7 @@ "@next/eslint-plugin-next": "^15.1.6", "@octokit/rest": "^21.1.0", "@pigment-css/react": "0.0.30", - "@playwright/test": "1.48.2", + "@playwright/test": "1.49.0", "@types/babel__core": "^7.20.5", "@types/fs-extra": "^11.0.4", "@types/lodash": "^4.17.15", diff --git a/packages-internal/test-utils/package.json b/packages-internal/test-utils/package.json index a963a721c5ec94..901302d54bfa0c 100644 --- a/packages-internal/test-utils/package.json +++ b/packages-internal/test-utils/package.json @@ -50,7 +50,7 @@ "jsdom": "^25.0.1", "lodash": "^4.17.21", "mocha": "^11.1.0", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "prop-types": "^15.8.1", "sinon": "^19.0.2" }, diff --git a/packages-internal/test-utils/src/setupBabelPlaywright.js b/packages-internal/test-utils/src/setupBabelPlaywright.js index a511d99caa3396..482a1d73679fe7 100644 --- a/packages-internal/test-utils/src/setupBabelPlaywright.js +++ b/packages-internal/test-utils/src/setupBabelPlaywright.js @@ -6,5 +6,8 @@ require('@babel/register')({ configFile: false, extensions: ['.js', '.ts', '.tsx'], presets: [require.resolve('@babel/preset-typescript')], - plugins: [require.resolve('@babel/plugin-transform-modules-commonjs')], + plugins: [ + require.resolve('@babel/plugin-transform-modules-commonjs'), + require.resolve('babel-plugin-transform-import-meta'), + ], }); diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index 1d67673358c5c9..e18e17605a6c9f 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -67,7 +67,7 @@ "fast-glob": "^3.3.3", "fs-extra": "^11.3.0", "lodash": "^4.17.21", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-router": "^7.1.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 37266021d6d2c7..b501f580f7da28 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ importers: '@slack/bolt': specifier: ^4.2.0 version: 4.2.0 + babel-plugin-transform-import-meta: + specifier: ^2.3.2 + version: 2.3.2(@babel/core@7.26.7) execa: specifier: ^9.5.2 version: 9.5.2 @@ -106,8 +109,8 @@ importers: specifier: 0.0.30 version: 0.0.30(@types/react@19.0.8)(react@19.0.0) '@playwright/test': - specifier: 1.48.2 - version: 1.48.2 + specifier: 1.49.0 + version: 1.49.0 '@types/babel__core': specifier: ^7.20.5 version: 7.20.5 @@ -137,7 +140,7 @@ importers: version: 7.18.0(eslint@8.57.1)(typescript@5.7.3) '@vitest/browser': specifier: ^3.0.5 - version: 3.0.5(@types/node@20.17.17)(playwright@1.48.2)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) + version: 3.0.5(@types/node@20.17.17)(playwright@1.49.0)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) '@vitest/coverage-v8': specifier: ^3.0.5 version: 3.0.5(@vitest/browser@3.0.5)(vitest@2.1.9) @@ -359,7 +362,7 @@ importers: version: link:../../packages/mui-utils/build next: specifier: latest - version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react: specifier: ^19.0.0 version: 19.0.0 @@ -369,7 +372,7 @@ importers: devDependencies: '@pigment-css/nextjs-plugin': specifier: 0.0.30 - version: 0.0.30(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack-sources@3.2.3) + version: 0.0.30(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack-sources@3.2.3) '@types/node': specifier: ^20.17.16 version: 20.17.17 @@ -413,8 +416,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 react: specifier: ^19.0.0 version: 19.0.0 @@ -513,8 +516,8 @@ importers: specifier: ^10.10.0 version: 10.10.0 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 prop-types: specifier: ^15.8.1 version: 15.8.1 @@ -661,7 +664,7 @@ importers: version: 9.7.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@toolpad/core': specifier: ^0.12.0 - version: 0.12.0(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.4.1(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@pigment-css/react@0.0.30(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/material@packages+mui-material+build)(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react-router@7.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0)) + version: 0.12.0(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.4.1(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@pigment-css/react@0.0.30(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/material@packages+mui-material+build)(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react-router@7.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0)) autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.5.1) @@ -745,7 +748,7 @@ importers: version: 5.3.3(@mui/material@packages+mui-material+build)(@types/react@19.0.8)(react@19.0.0) next: specifier: ^15.1.6 - version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) notistack: specifier: 3.0.2 version: 3.0.2(csstype@3.1.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -901,8 +904,8 @@ importers: specifier: ^15.0.6 version: 15.0.6 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 prettier: specifier: ^3.4.2 version: 3.4.2 @@ -1078,8 +1081,8 @@ importers: specifier: ^11.1.0 version: 11.1.0 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 prop-types: specifier: ^15.8.1 version: 15.8.1 @@ -1457,7 +1460,7 @@ importers: version: 19.0.8 next: specifier: ^15.1.6 - version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react: specifier: ^19.0.0 version: 19.0.0 @@ -1631,7 +1634,7 @@ importers: version: 4.17.21 next: specifier: ^15.1.6 - version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react: specifier: ^19.0.0 version: 19.0.0 @@ -1799,8 +1802,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 react: specifier: ^19.0.0 version: 19.0.0 @@ -1835,7 +1838,7 @@ importers: version: 19.0.8 next: specifier: ^15.1.6 - version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + version: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react: specifier: ^19.0.0 version: 19.0.0 @@ -2278,8 +2281,8 @@ importers: specifier: workspace:^ version: link:../packages/mui-utils/build '@playwright/test': - specifier: 1.48.2 - version: 1.48.2 + specifier: 1.49.0 + version: 1.49.0 '@testing-library/dom': specifier: ^10.4.0 version: 10.4.0 @@ -2314,8 +2317,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 playwright: - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 prop-types: specifier: ^15.8.1 version: 15.8.1 @@ -2632,7 +2635,6 @@ packages: '@babel/plugin-proposal-private-methods@7.18.6': resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==} engines: {node: '>=6.9.0'} - deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead. peerDependencies: '@babel/core': ^7.26.7 @@ -3709,7 +3711,6 @@ packages: '@humanwhocodes/config-array@0.13.0': resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -3717,7 +3718,6 @@ packages: '@humanwhocodes/object-schema@2.0.3': resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead '@hutson/parse-repository-url@3.0.2': resolution: {integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==} @@ -3926,7 +3926,6 @@ packages: '@mui/base@5.0.0-beta.30': resolution: {integrity: sha512-dc38W4W3K42atE9nSaOeoJ7/x9wGIfawdwC/UmMxMLlZ1iSsITQ8dQJaTATCbn98YvYPINK/EH541YA5enQIPQ==} engines: {node: '>=12.0.0'} - deprecated: This package has been replaced by @base-ui-components/react peerDependencies: '@types/react': ^17.0.0 || ^18.0.0 react: ^17.0.0 || ^18.0.0 @@ -4839,8 +4838,8 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@playwright/test@1.48.2': - resolution: {integrity: sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==} + '@playwright/test@1.49.0': + resolution: {integrity: sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==} engines: {node: '>=18'} hasBin: true @@ -6207,7 +6206,6 @@ packages: babel-merge@3.0.0: resolution: {integrity: sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. peerDependencies: '@babel/core': ^7.26.7 @@ -6256,6 +6254,11 @@ packages: babel-plugin-transform-flow-enums@0.0.2: resolution: {integrity: sha512-g4aaCrDDOsWjbm0PUUeVnkcVd6AKJsVc/MbnPhEotEpkeJQP6b8nzewohQi7+QS8UyPehOhGWn0nOwjvWpmMvQ==} + babel-plugin-transform-import-meta@2.3.2: + resolution: {integrity: sha512-902o4GiQqI1GqAXfD5rEoz0PJamUfJ3VllpdWaNsFTwdaNjFSFHawvBO+cp5K2j+g2h3bZ4lnM1Xb6yFYGihtA==} + peerDependencies: + '@babel/core': ^7.26.7 + babel-plugin-transform-inline-environment-variables@0.4.4: resolution: {integrity: sha512-bJILBtn5a11SmtR2j/3mBOjX4K3weC6cq+NNZ7hG22wCAqpc3qtj/iN7dSe9HDiS46lgp1nHsQgeYrea/RUe+g==} @@ -6941,7 +6944,6 @@ packages: core-js@2.6.12: resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} - deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. core-js@3.32.1: resolution: {integrity: sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ==} @@ -7778,7 +7780,6 @@ packages: eslint@8.57.1: resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -8154,7 +8155,6 @@ packages: fstream@1.0.12: resolution: {integrity: sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==} engines: {node: '>=0.6'} - deprecated: This package is no longer supported. function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -8286,7 +8286,6 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported glob@9.3.5: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} @@ -8641,7 +8640,6 @@ packages: inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -9482,7 +9480,6 @@ packages: lodash.get@4.4.2: resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - deprecated: This package is deprecated. Use the optional chaining (?.) operator instead. lodash.groupby@4.6.0: resolution: {integrity: sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw==} @@ -9495,7 +9492,6 @@ packages: lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. lodash.isfunction@3.0.9: resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} @@ -10815,13 +10811,13 @@ packages: platform@1.3.6: resolution: {integrity: sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==} - playwright-core@1.48.2: - resolution: {integrity: sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==} + playwright-core@1.49.0: + resolution: {integrity: sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==} engines: {node: '>=18'} hasBin: true - playwright@1.48.2: - resolution: {integrity: sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==} + playwright@1.49.0: + resolution: {integrity: sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==} engines: {node: '>=18'} hasBin: true @@ -11100,10 +11096,6 @@ packages: q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} - deprecated: |- - You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. - - (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) qjobs@1.2.0: resolution: {integrity: sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==} @@ -11120,7 +11112,6 @@ packages: querystring@0.2.0: resolution: {integrity: sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==} engines: {node: '>=0.4.x'} - deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} @@ -11616,7 +11607,6 @@ packages: rimraf@2.5.4: resolution: {integrity: sha512-Lw7SHMjssciQb/rRz7JyPIy9+bbUshEucPoLRvWqy09vC5zQixl8Uet+Zl+SROBB/JMWHJRdCk1qdxNWHNMvlQ==} - deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@2.6.3: @@ -11626,12 +11616,10 @@ packages: rimraf@2.7.1: resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} - deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@4.4.1: @@ -16067,10 +16055,10 @@ snapshots: '@opentelemetry/api@1.8.0': optional: true - '@pigment-css/nextjs-plugin@0.0.30(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack-sources@3.2.3)': + '@pigment-css/nextjs-plugin@0.0.30(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(webpack-sources@3.2.3)': dependencies: '@pigment-css/unplugin': 0.0.30(@types/react@19.0.8)(react@19.0.0)(webpack-sources@3.2.3) - next: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + next: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) transitivePeerDependencies: - '@types/react' - react @@ -16137,9 +16125,9 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@playwright/test@1.48.2': + '@playwright/test@1.49.0': dependencies: - playwright: 1.48.2 + playwright: 1.49.0 '@polka/url@1.0.0-next.28': {} @@ -16842,7 +16830,7 @@ snapshots: '@theme-ui/css': 0.17.1(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0)) react: 19.0.0 - '@toolpad/core@0.12.0(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.4.1(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@pigment-css/react@0.0.30(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/material@packages+mui-material+build)(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react-router@7.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))': + '@toolpad/core@0.12.0(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.4.1(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@emotion/styled@11.13.5(@emotion/react@11.13.5(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@pigment-css/react@0.0.30(@types/react@19.0.8)(react@19.0.0))(@types/react@19.0.8)(react@19.0.0))(@mui/material@packages+mui-material+build)(@types/react@19.0.8)(next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react-router@7.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))': dependencies: '@babel/runtime': 7.26.7 '@mui/icons-material': link:packages/mui-icons-material/build @@ -16857,7 +16845,7 @@ snapshots: prop-types: 15.8.1 react: 19.0.0 optionalDependencies: - next: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + next: 15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-router: 7.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) transitivePeerDependencies: - '@emotion/react' @@ -17232,7 +17220,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/browser@3.0.5(@types/node@20.17.17)(playwright@1.48.2)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9)': + '@vitest/browser@3.0.5(@types/node@20.17.17)(playwright@1.49.0)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9)': dependencies: '@testing-library/dom': 10.4.0 '@testing-library/user-event': 14.6.1(@testing-library/dom@10.4.0) @@ -17245,7 +17233,7 @@ snapshots: vitest: 2.1.9(@types/node@20.17.17)(@vitest/browser@3.0.5)(happy-dom@15.11.6)(jsdom@25.0.1)(msw@2.7.0(@types/node@20.17.17)(typescript@5.7.3))(terser@5.37.0) ws: 8.18.0 optionalDependencies: - playwright: 1.48.2 + playwright: 1.49.0 transitivePeerDependencies: - '@types/node' - bufferutil @@ -17269,7 +17257,7 @@ snapshots: tinyrainbow: 2.0.0 vitest: 2.1.9(@types/node@20.17.17)(@vitest/browser@3.0.5)(happy-dom@15.11.6)(jsdom@25.0.1)(msw@2.7.0(@types/node@20.17.17)(typescript@5.7.3))(terser@5.37.0) optionalDependencies: - '@vitest/browser': 3.0.5(@types/node@20.17.17)(playwright@1.48.2)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) + '@vitest/browser': 3.0.5(@types/node@20.17.17)(playwright@1.49.0)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) transitivePeerDependencies: - supports-color @@ -17964,6 +17952,12 @@ snapshots: transitivePeerDependencies: - '@babel/core' + babel-plugin-transform-import-meta@2.3.2(@babel/core@7.26.7): + dependencies: + '@babel/core': 7.26.7 + '@babel/template': 7.25.9 + tslib: 2.8.1 + babel-plugin-transform-inline-environment-variables@0.4.4: {} babel-plugin-transform-react-remove-prop-types@0.4.24: {} @@ -22913,7 +22907,7 @@ snapshots: nested-error-stacks@2.1.1: {} - next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.48.2)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + next@15.1.6(@babel/core@7.26.7)(@opentelemetry/api@1.8.0)(@playwright/test@1.49.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@next/env': 15.1.6 '@swc/counter': 0.1.3 @@ -22934,7 +22928,7 @@ snapshots: '@next/swc-win32-arm64-msvc': 15.1.6 '@next/swc-win32-x64-msvc': 15.1.6 '@opentelemetry/api': 1.8.0 - '@playwright/test': 1.48.2 + '@playwright/test': 1.49.0 sharp: 0.33.5 transitivePeerDependencies: - '@babel/core' @@ -23717,11 +23711,11 @@ snapshots: platform@1.3.6: {} - playwright-core@1.48.2: {} + playwright-core@1.49.0: {} - playwright@1.48.2: + playwright@1.49.0: dependencies: - playwright-core: 1.48.2 + playwright-core: 1.49.0 optionalDependencies: fsevents: 2.3.2 @@ -26117,7 +26111,7 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 20.17.17 - '@vitest/browser': 3.0.5(@types/node@20.17.17)(playwright@1.48.2)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) + '@vitest/browser': 3.0.5(@types/node@20.17.17)(playwright@1.49.0)(typescript@5.7.3)(vite@5.4.14(@types/node@20.17.17)(terser@5.37.0))(vitest@2.1.9) happy-dom: 15.11.6 jsdom: 25.0.1 transitivePeerDependencies: diff --git a/test/bundling/fixtures/create-react-app/package.json b/test/bundling/fixtures/create-react-app/package.json index 984ac4163f19d8..87e6cb5d181a93 100644 --- a/test/bundling/fixtures/create-react-app/package.json +++ b/test/bundling/fixtures/create-react-app/package.json @@ -26,7 +26,7 @@ "devDependencies": { "concurrently": "7.4.0", "cross-env": "7.0.3", - "playwright": "1.48.2", + "playwright": "1.49.0", "serve": "14.2.4" }, "browserslist": { diff --git a/test/bundling/fixtures/esbuild/package.json b/test/bundling/fixtures/esbuild/package.json index 9602fde56f3b1e..0dee5f7a590bbc 100644 --- a/test/bundling/fixtures/esbuild/package.json +++ b/test/bundling/fixtures/esbuild/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2", + "playwright": "1.49.0", "serve": "14.2.4" }, "pnpm": { diff --git a/test/bundling/fixtures/gatsby/package.json b/test/bundling/fixtures/gatsby/package.json index 7fa4eff68af58c..b1e45320fea688 100644 --- a/test/bundling/fixtures/gatsby/package.json +++ b/test/bundling/fixtures/gatsby/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2" + "playwright": "1.49.0" }, "pnpm": { "overrides": { diff --git a/test/bundling/fixtures/next-webpack4/package.json b/test/bundling/fixtures/next-webpack4/package.json index d4f94b7e064b4e..39e43572808f6b 100644 --- a/test/bundling/fixtures/next-webpack4/package.json +++ b/test/bundling/fixtures/next-webpack4/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2" + "playwright": "1.49.0" }, "pnpm": { "overrides": { diff --git a/test/bundling/fixtures/next-webpack5/package.json b/test/bundling/fixtures/next-webpack5/package.json index 93c23a686552f7..acfd234baf8326 100644 --- a/test/bundling/fixtures/next-webpack5/package.json +++ b/test/bundling/fixtures/next-webpack5/package.json @@ -23,7 +23,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2" + "playwright": "1.49.0" }, "pnpm": { "overrides": { diff --git a/test/bundling/fixtures/snowpack/package.json b/test/bundling/fixtures/snowpack/package.json index d8d079c59a5012..602b80aa478f46 100644 --- a/test/bundling/fixtures/snowpack/package.json +++ b/test/bundling/fixtures/snowpack/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2", + "playwright": "1.49.0", "serve": "14.2.4" }, "pnpm": { diff --git a/test/bundling/fixtures/vite/package.json b/test/bundling/fixtures/vite/package.json index 1809aa0753b97b..a104fa5466bea4 100644 --- a/test/bundling/fixtures/vite/package.json +++ b/test/bundling/fixtures/vite/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "concurrently": "7.4.0", - "playwright": "1.48.2", + "playwright": "1.49.0", "serve": "14.2.4" }, "pnpm": { diff --git a/test/package.json b/test/package.json index ed667bd5100a7c..0717ce9afecc8a 100644 --- a/test/package.json +++ b/test/package.json @@ -17,7 +17,7 @@ "@mui/material": "workspace:^", "@mui/system": "workspace:^", "@mui/utils": "workspace:^", - "@playwright/test": "1.48.2", + "@playwright/test": "1.49.0", "@testing-library/dom": "^10.4.0", "@types/chai": "^4.3.20", "@types/react": "^19.0.8", @@ -29,7 +29,7 @@ "fs-extra": "^11.3.0", "html-webpack-plugin": "^5.6.3", "lodash": "^4.17.21", - "playwright": "^1.48.2", + "playwright": "^1.49.0", "prop-types": "^15.8.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/test/regressions/index.test.js b/test/regressions/index.test.js index 7eb53f2887632d..21705d4234d699 100644 --- a/test/regressions/index.test.js +++ b/test/regressions/index.test.js @@ -1,10 +1,13 @@ +import * as url from 'url'; import * as path from 'path'; import * as fse from 'fs-extra'; import * as playwright from 'playwright'; +const currentDirectory = url.fileURLToPath(new URL('.', import.meta.url)); + async function main() { const baseUrl = 'http://localhost:5001'; - const screenshotDir = path.resolve(__dirname, './screenshots/chrome'); + const screenshotDir = path.resolve(currentDirectory, './screenshots/chrome'); const browser = await playwright.chromium.launch({ args: ['--font-render-hinting=none'],