Thanks to visit codestin.com
Credit goes to github.com

Skip to content

E2E Tests

E2E Tests #3965

Workflow file for this run

name: E2E Tests
on:
workflow_dispatch:
schedule:
- cron: "35 * * * *"
push:
paths:
- ".github/workflows/e2e-tests.yml"
- "e2e-tests/**"
defaults:
run:
working-directory: ./e2e-tests
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
with:
package_json_file: "e2e-tests/package.json"
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
cache: "pnpm"
cache-dependency-path: "e2e-tests/pnpm-lock.yaml"
- run: pnpm install --frozen-lockfile
- run: pnpm exec playwright install --with-deps chromium
- run: pnpm test
env:
FBS_TEST_USERNAME: ${{ vars.FBS_TEST_USERNAME }}
FBS_TEST_PASSWORD: ${{ secrets.FBS_TEST_PASSWORD }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: failure()
with:
name: playwright-report
path: e2e-tests/playwright-report/
retention-days: 7
- name: Notify Slack on failure
if: failure()
run: |
curl --fail -X POST \
-H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}" \
-H "Content-type: application/json" \
--data '{"channel":"C0AAS4Q42RJ","text":"❌ E2E tests failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' \
https://slack.com/api/chat.postMessage