Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright 1.33 and UI mode #38100

Merged
merged 10 commits into from May 10, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/e2e-playwright-1_33
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Update Playwright to 1.33 and introduce UI command
3 changes: 2 additions & 1 deletion plugins/woocommerce/package.json
Expand Up @@ -33,6 +33,7 @@
"update-wp-env": "php ./tests/e2e-pw/bin/update-wp-env.php",
"env:test": "pnpm run update-wp-env && pnpm run env:dev && ./tests/e2e-pw/bin/test-env-setup.sh",
"test:e2e-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js",
"test:e2e-pw-ui": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js --ui",
lanej0 marked this conversation as resolved.
Show resolved Hide resolved
"test:api-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/api-core-tests/playwright.config.js",
"env:start": "pnpm wp-env start && ./tests/e2e-pw/bin/test-env-setup.sh",
"env:restart": "pnpm wp-env destroy && pnpm wp-env start && ./tests/e2e-pw/bin/test-env-setup.sh",
Expand All @@ -54,7 +55,7 @@
"@babel/core": "7.12.9",
"@babel/preset-env": "7.12.7",
"@babel/register": "7.12.1",
"@playwright/test": "^1.30.0",
"@playwright/test": "^1.33.0",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/experimental-utils": "^5.43.0",
"@typescript-eslint/parser": "^5.54.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/woocommerce/tests/e2e-pw/playwright.config.js
Expand Up @@ -11,7 +11,7 @@ const {
const config = {
timeout: DEFAULT_TIMEOUT_OVERRIDE
? Number( DEFAULT_TIMEOUT_OVERRIDE )
: 90 * 1000,
: 300 * 1000,
alopezari marked this conversation as resolved.
Show resolved Hide resolved
expect: { timeout: 20 * 1000 },
outputDir: './test-results/report',
globalSetup: require.resolve( './global-setup' ),
Expand Down