diff --git a/code/package.json b/code/package.json index 725a4333c133..8f34d5ae3d53 100644 --- a/code/package.json +++ b/code/package.json @@ -246,8 +246,6 @@ "node-gyp": "^9.3.1", "nx": "16.2.1", "nx-cloud": "16.0.5", - "playwright": "^1.35.0", - "playwright-core": "^1.35.0", "prettier": "2.8.0", "process": "^0.11.10", "raf": "^3.4.1", diff --git a/code/yarn.lock b/code/yarn.lock index 42040001bf2c..4fdacfef8fb7 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -7210,8 +7210,6 @@ __metadata: node-gyp: ^9.3.1 nx: 16.2.1 nx-cloud: 16.0.5 - playwright: ^1.35.0 - playwright-core: ^1.35.0 prettier: 2.8.0 process: ^0.11.10 raf: ^3.4.1 diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index c7022c88755b..9cdeff5b835c 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -24,6 +24,8 @@ export const addPackageResolutions = async ({ cwd, dryRun }: YarnOptions) => { ...storybookVersions, '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` + playwright: '^1.35.0', + 'playwright-core': '^1.35.0', '@playwright/test': '^1.35.0', }; await writeJSON(packageJsonPath, packageJson, { spaces: 2 });