Skip to content

Commit

Permalink
chore(playwright): add basic setup of playwright in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Jun 13, 2024
1 parent 2efa146 commit 282ccb2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Playwright Tests
on:
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ cypress/downloads/
cypress/screenshots/
cypress/videos/
/test-results/

# Playwright Assets
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
17 changes: 10 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"license": "MIT",
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@playwright/test": "^1.44.1",
"@types/node": "^20.14.2",
"cypress": "^13.11.0",
"cypress-clipboard": "^1.0.3",
"cypress-real-events": "^1.12.0",
"prettier": "3.2.5",
"typescript": "^5.4.5"
},
"dependencies": {
"cypress-clipboard": "^1.0.3"
}
"scripts": {}
}

0 comments on commit 282ccb2

Please sign in to comment.