Skip to content

Commit

Permalink
Run specific playwright test (#62)
Browse files Browse the repository at this point in the history
* run custom test

* custom playwright command

* run custom playwright command

* changed description

* changed input variable name according to cypres spec param
  • Loading branch information
dvviktordelev authored Apr 30, 2024
1 parent 09e2325 commit 28a13bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ on:
type: string
required: false
default: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || !!startsWith(github.ref, 'refs/heads/release-') || !!startsWith(github.ref, 'refs/heads/dependabot')}}
playwright_spec_param:
type: string
description: "Run specific test(s). Example: `landing-page.spec.ts`"
required: false
node_run_webpack:
description: "Flag to always run the webpack production build."
type: boolean
Expand Down Expand Up @@ -319,7 +323,7 @@ jobs:
run: yarn playwright install --with-deps chromium
shell: bash
- name: Run playwright e2e tests
run: yarn run pw:run
run: yarn run pw:run ${{ inputs.playwright_spec_param }}
shell: bash
- name: Upload playwright report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 28a13bd

Please sign in to comment.