Skip to content

Commit

Permalink
Update playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Oct 21, 2024
1 parent bf0f7fa commit 55ab9ce
Show file tree
Hide file tree
Showing 10 changed files with 9,177 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ executors:
default: "small"
working_directory: /tmp/storybook
docker:
- image: mcr.microsoft.com/playwright:v1.46.0-jammy
- image: mcr.microsoft.com/playwright:v1.48.1-jammy
environment:
NODE_OPTIONS: --max_old_space_size=6144
resource_class: <<parameters.class>>
Expand Down
8 changes: 4 additions & 4 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@
"defaults"
],
"resolutions": {
"@playwright/test": "1.46.0",
"@playwright/test": "1.48.1",
"@types/babel__traverse@npm:*": "patch:@types/babel__traverse@npm%3A7.20.6#~/.yarn/patches/@types-babel__traverse-npm-7.20.6-fac4243243.patch",
"@types/babel__traverse@npm:^7.18.0": "patch:@types/babel__traverse@npm%3A7.20.6#~/.yarn/patches/@types-babel__traverse-npm-7.20.6-fac4243243.patch",
"@types/node": "^22.0.0",
"@vitest/expect@npm:2.0.5": "patch:@vitest/expect@npm%3A2.0.5#~/.yarn/patches/@vitest-expect-npm-2.0.5-8933466cce.patch",
"esbuild": "^0.24.0",
"playwright": "1.46.0",
"playwright-core": "1.46.0",
"playwright": "1.48.1",
"playwright-core": "1.48.1",
"serialize-javascript": "^3.1.0",
"type-fest": "~2.19"
},
Expand All @@ -95,7 +95,7 @@
"@nx/eslint": "18.0.6",
"@nx/vite": "18.0.6",
"@nx/workspace": "18.0.6",
"@playwright/test": "1.46.0",
"@playwright/test": "1.48.1",
"@storybook/addon-a11y": "workspace:*",
"@storybook/addon-actions": "workspace:*",
"@storybook/addon-backgrounds": "workspace:*",
Expand Down
30 changes: 15 additions & 15 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4606,14 +4606,14 @@ __metadata:
languageName: node
linkType: hard

"@playwright/test@npm:1.46.0":
version: 1.46.0
resolution: "@playwright/test@npm:1.46.0"
"@playwright/test@npm:1.48.1":
version: 1.48.1
resolution: "@playwright/test@npm:1.48.1"
dependencies:
playwright: "npm:1.46.0"
playwright: "npm:1.48.1"
bin:
playwright: cli.js
checksum: 10c0/dced91081efc8b063267626059b37923f44f98132edba906f30281277d919de27c6acf6de082d390ad263112a983f856e7f4bf37722a33cc42f62c5be308bf87
checksum: 10c0/32cedc3b2d375cb8f4a830bc820d7726b0235be7a6202e1d6ee46e739b83666271c47c100c11311cf5a916468c18e6a4dc526accf9ef090786e7614c2633b2b8
languageName: node
linkType: hard

Expand Down Expand Up @@ -6823,7 +6823,7 @@ __metadata:
"@nx/eslint": "npm:18.0.6"
"@nx/vite": "npm:18.0.6"
"@nx/workspace": "npm:18.0.6"
"@playwright/test": "npm:1.46.0"
"@playwright/test": "npm:1.48.1"
"@storybook/addon-a11y": "workspace:*"
"@storybook/addon-actions": "workspace:*"
"@storybook/addon-backgrounds": "workspace:*"
Expand Down Expand Up @@ -22776,27 +22776,27 @@ __metadata:
languageName: node
linkType: hard

"playwright-core@npm:1.46.0":
version: 1.46.0
resolution: "playwright-core@npm:1.46.0"
"playwright-core@npm:1.48.1":
version: 1.48.1
resolution: "playwright-core@npm:1.48.1"
bin:
playwright-core: cli.js
checksum: 10c0/2d2d163dc22a424a86765b25c5523e932748f38d071f49ac6c41f14c8c10c0874b3854a290057e9988c5e876bb8be8aa52fe40ee8c57b3390b9c01593074e3df
checksum: 10c0/2f75532b9b7dfa0e586f5660ac1d8ea729bbdbd28dd2c0711e7cfc1adfe5cf7448d7f15a018ec9851a8f50c0743c3990cb9df23064bed603627baeac4dce3915
languageName: node
linkType: hard

"playwright@npm:1.46.0":
version: 1.46.0
resolution: "playwright@npm:1.46.0"
"playwright@npm:1.48.1":
version: 1.48.1
resolution: "playwright@npm:1.48.1"
dependencies:
fsevents: "npm:2.3.2"
playwright-core: "npm:1.46.0"
playwright-core: "npm:1.48.1"
dependenciesMeta:
fsevents:
optional: true
bin:
playwright: cli.js
checksum: 10c0/fa4192af99908c2c02ae20880e27f51efa6694348c2496d1c2818908eb394c4b21947edd0c5ce2a83f471f5399ac3f0cee8a7be8a35cd80d32d32875184962c7
checksum: 10c0/96280ae656226e52015c0c69c4c19e9f594c19353a79012a19bd7b7175d7b409c1aed289a629df49ef897a57ccd24668ad15b86c283db10f76212a4db90a94ac
languageName: node
linkType: hard

Expand Down
4 changes: 2 additions & 2 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@
"p-limit": "^3.1.0",
"p-retry": "^5.1.2",
"picocolors": "^1.1.0",
"playwright": "1.46.0",
"playwright-core": "1.46.0",
"playwright": "1.48.1",
"playwright-core": "1.48.1",
"polka": "^1.0.0-next.28",
"prettier": "^3.3.2",
"prettier-plugin-brace-style": "^0.6.2",
Expand Down
6 changes: 3 additions & 3 deletions scripts/utils/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const addPackageResolutions = async ({ cwd, dryRun }: YarnOptions) => {
'enhanced-resolve': '~5.10.0', // TODO, remove this
// this is for our CI test, ensure we use the same version as docker image, it should match version specified in `./code/package.json` and `.circleci/config.yml`
'@swc/core': '1.5.7',
playwright: '1.46.0',
'playwright-core': '1.46.0',
'@playwright/test': '1.46.0',
playwright: '1.48.1',
'playwright-core': '1.48.1',
'@playwright/test': '1.48.1',
};
await writeJSON(packageJsonPath, packageJson, { spaces: 2 });
};
Expand Down
10 changes: 5 additions & 5 deletions test-storybooks/portable-stories-kitchen-sink/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"vitest": "echo 'not running'"
},
"resolutions": {
"@playwright/test": "1.46.0",
"@playwright/test": "1.48.1",
"@storybook/addon-a11y": "portal:../../../code/addons/a11y",
"@storybook/addon-actions": "portal:../../../code/addons/actions",
"@storybook/addon-backgrounds": "portal:../../../code/addons/backgrounds",
Expand Down Expand Up @@ -80,16 +80,16 @@
"@storybook/web-components": "portal:../../../code/renderers/web-components",
"@storybook/web-components-vite": "portal:../../../code/frameworks/web-components-vite",
"@storybook/web-components-webpack5": "portal:../../../code/frameworks/web-components-webpack5",
"playwright": "1.46.0",
"playwright": "1.48.1",
"storybook": "portal:../../../code/lib/cli"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@playwright/experimental-ct-react": "1.46.0",
"@playwright/test": "1.46.0",
"@playwright/experimental-ct-react": "1.48.1",
"@playwright/test": "1.48.1",
"@storybook/addon-actions": "^8.0.0",
"@storybook/addon-controls": "^8.0.0",
"@storybook/addon-essentials": "^8.0.0",
Expand Down Expand Up @@ -122,4 +122,4 @@
"vite": "^5.1.1",
"vitest": "^2.1.3"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'retain-on-failure',
video: 'retain-on-failure',
// headless: false,
},

/* Configure projects for major browsers */
Expand Down
Loading

0 comments on commit 55ab9ce

Please sign in to comment.