Skip to content

Commit 4eb6394

Browse files
committed
chore: add commonly used npm scripts
1 parent 68f406e commit 4eb6394

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
"version": "2.36.1-dev.0",
44
"license": "Apache-2.0",
55
"scripts": {
6-
"pw-report": "playwright show-report reports/playwright",
7-
"debug": "playwright test --headed --project=Portal --debug",
6+
"html-report": "playwright show-report reports/playwright",
7+
"debug": "playwright test --project=Portal --debug",
8+
"test-e2e-portal": "playwright test --project=Portal",
9+
"test-e2e-portal-last-failed": "playwright test --project=Portal --last-failed",
10+
"cleanup": "playwright test --project=Cleanup",
811
"lint": "eslint . --ext .ts,.tsx,.json --ignore-path .gitignore --max-warnings 0 --report-unused-disable-directives",
912
"format": "npm run lint --fix",
1013
"feature-start": "feature-start --featureName",

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default defineConfig<Fixtures>({
4747
/* Fail the build on CI if you accidentally left test.only in the source code. */
4848
forbidOnly: !!process.env.CI,
4949
/* Retry on CI only */
50-
retries: process.env.CI ? 2 : 0,
50+
retries: 2,
5151
/* Opt out of parallel tests on CI. */
5252
workers: process.env.CI ? 10 : 3,
5353
/* Limit the number of failures on CI to save resources */

0 commit comments

Comments
 (0)