tests: wasm UI tests (#4090)

This commit is contained in:
Vlad Stan 2026-07-24 10:56:01 +03:00 committed by GitHub
parent d9523aadbd
commit c0806ca59c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 2546 additions and 3 deletions

View file

@ -64,6 +64,11 @@ jobs:
with:
make: openapi
test-e2e:
if: ${{ false }}
needs: [ lint ]
uses: ./.github/workflows/e2e.yml
regtest:
needs: [ lint ]
uses: ./.github/workflows/regtest.yml

41
.github/workflows/e2e.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: e2e
on:
workflow_call:
workflow_dispatch:
jobs:
test-e2e:
name: test-e2e (${{ matrix.name }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: bigpayment
spec: tests/e2e/bigpayment.spec.ts
- name: paysplit
spec: tests/e2e/paysplit.spec.ts
- name: pingpong
spec: tests/e2e/pingpong.spec.ts
- name: tips
spec: tests/e2e/tips.spec.ts
steps:
- uses: actions/checkout@v4
- uses: lnbits/lnbits/.github/actions/prepare@dev
with:
python-version: "3.12"
node-version: "24.x"
npm: true
- name: Install Playwright browser
run: npm exec playwright install chromium
- name: Run ${{ matrix.name }} e2e tests
run: npm run test:e2e -- "${{ matrix.spec }}"
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.name }}
path: test-reports
if-no-files-found: ignore