Skip to content

Commit

Permalink
Update playwright.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adameddy26 authored Jun 16, 2024
1 parent 8d9ce25 commit 938732b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Install Playwright
run: npx playwright install

- name: Upload screenshot on error
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: error-screenshot
path: error-screenshot-*.png

- name: Run Playwright automation script
run: DEBUG=pw:api npx playwright test --headed=true
run: npx playwright test
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
INSTANCE: ${{ secrets.INSTANCE }}

- name: Upload screenshot on error
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: error-screenshot
path: screenshots/

0 comments on commit 938732b

Please sign in to comment.