Skip to content

Commit

Permalink
chore: update playwright to 1.49.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jan 8, 2025
1 parent 750409f commit f35c768
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 261 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
- run: yarn nx affected --target=type-check
- run: yarn nx affected --target=lint
- run: yarn nx affected --target=test
- run: yarn nx affected --target=component-test --skipInstall
- run: npx playwright clear-cache
- run: yarn nx affected --target=component-test --skipInstall --parallel 1
- run: yarn nx format:check --base origin/main

- name: 'Check for unstaged changes'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@nx/web": "19.3.2",
"@nx/webpack": "19.3.2",
"@nx/workspace": "19.3.2",
"@playwright/experimental-ct-react": "^1.41.2",
"@playwright/experimental-ct-react": "^1.49.1",
"@rnx-kit/eslint-plugin": "0.5.3",
"@storybook/addon-docs": "7.6.17",
"@storybook/addon-essentials": "7.6.17",
Expand Down
4 changes: 3 additions & 1 deletion packages/nx-plugin/src/executors/playwright/executor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { execSync, fork } from 'node:child_process';
import * as path from 'node:path';
import {
type ExecutorContext,
getPackageManagerCommand,
Expand Down Expand Up @@ -114,7 +115,8 @@ function createArgs(
*/
function runPlaywright(args: string[], cwd: string) {
try {
const cli = require.resolve('@playwright/experimental-ct-core/cli');
const module = require.resolve('@playwright/experimental-ct-react');
const cli = path.join(path.dirname(module), 'cli.js');

return fork(cli, ['test', ...args], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
Expand Down
Loading

0 comments on commit f35c768

Please sign in to comment.