mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-13 12:42:47 +02:00
tests: wasm UI tests (#4090)
This commit is contained in:
parent
d9523aadbd
commit
c0806ca59c
18 changed files with 2546 additions and 3 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -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
41
.github/workflows/e2e.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue