Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add playwright tests #3437

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ ETHERSCAN_API_KEY=
WALLET_CONNECT_PROJECT_ID=
TOKEN_SALES_URL_MAINNET=
TOKEN_SALES_URL_TESTNET=
APPLITOOLS_KEY=
PLAYWRIGHT_SEED_PHRASE=
32 changes: 32 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test using playwright
on: [push]
jobs:
main:
runs-on: ubuntu-latest
env:
APP_NAME: wallet
APPLITOOLS_KEY: ${{ secrets.APPLITOOLS_KEY }}
ETHERSCAN_API_KEY: "${{ github.ref == 'refs/heads/master' && secrets.ETHERSCAN_API_KEY_PROD || secrets.ETHERSCAN_API_KEY_DEV }}"
PLAYWRIGHT_SEED_PHRASE: ${{ secrets.PLAYWRIGHT_SEED_PHRASE }}
TOKEN_SALES_URL_MAINNET: ${{ secrets.TOKEN_SALES_URL_MAINNET }}
TOKEN_SALES_URL_TESTNET: ${{ secrets.TOKEN_SALES_URL_TESTNET }}
WALLET_CONNECT_PROJECT_ID: ${{ secrets.WALLET_CONNECT_PROJECT_ID }}
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: Install playwright
run: npx playwright install
- name: Run parallel tests
run: |
npm run build:web
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
Loading