Skip to content

Commit

Permalink
tests: add playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Dec 13, 2024
1 parent ef41173 commit 309c0d7
Show file tree
Hide file tree
Showing 19 changed files with 5,273 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ ETHERSCAN_API_KEY=
WALLET_CONNECT_PROJECT_ID=
TOKEN_SALES_URL_MAINNET=
TOKEN_SALES_URL_TESTNET=
APPLITOOLS_KEY=
25 changes: 25 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Playwright tests
on: [push]
jobs:
main:
runs-on: ubuntu-latest
env:
APP_NAME: wallet
APPLITOOLS_KEY: ${{ secrets.APPLITOOLS_KEY }}
TOKEN_SALES_URL_MAINNET: ${{ secrets.TOKEN_SALES_URL_MAINNET }}
TOKEN_SALES_URL_TESTNET: ${{ secrets.TOKEN_SALES_URL_TESTNET }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install app dependencies
run: npm ci
- name: Run parallel tests
run: npm run test:playwright:parallel
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@
*.pub
*.zip
/artifacts

# playwright
/playwright
/playwright-report
/test-results
Loading

0 comments on commit 309c0d7

Please sign in to comment.