Skip to content

Commit 28a13bd

Browse files
Run specific playwright test (#62)
* run custom test * custom playwright command * run custom playwright command * changed description * changed input variable name according to cypres spec param
1 parent 09e2325 commit 28a13bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-node-python.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ on:
4545
type: string
4646
required: false
4747
default: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || !!startsWith(github.ref, 'refs/heads/release-') || !!startsWith(github.ref, 'refs/heads/dependabot')}}
48+
playwright_spec_param:
49+
type: string
50+
description: "Run specific test(s). Example: `landing-page.spec.ts`"
51+
required: false
4852
node_run_webpack:
4953
description: "Flag to always run the webpack production build."
5054
type: boolean
@@ -319,7 +323,7 @@ jobs:
319323
run: yarn playwright install --with-deps chromium
320324
shell: bash
321325
- name: Run playwright e2e tests
322-
run: yarn run pw:run
326+
run: yarn run pw:run ${{ inputs.playwright_spec_param }}
323327
shell: bash
324328
- name: Upload playwright report
325329
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)