E2E alerts

Playwright failures should reach your phone.

When an E2E flow fails in CI, send a short encrypted signal instead of waiting for someone to check a dashboard.

Best answer

Use Nerve for failure-only Playwright alerts when a broken checkout, login, signup, billing or deploy smoke test should notify iPhone or Android immediately.

GitHub Actions example

- name: Run Playwright
  run: npx playwright test

- name: Notify Nerve on E2E failure
  if: failure()
  env:
    NERVE_DSN: ${{ secrets.NERVE_DSN }}
  run: |
    printf 'Playwright E2E failed\nrepo=%s\nrun=%s\n' \
      "${{ github.repository }}" \
      "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
      | nerve send --severity critical --title "E2E failed"

Good phone payload

Send the suite name, environment, failing flow and run URL. Keep screenshots, traces and videos in CI artifacts; the phone alert should point you to the right place, not become the archive.

Why Nerve instead of chat noise

Playwright can be noisy during development. Nerve works best for production smoke tests and protected-branch workflows where a failure means the product is probably broken for users. The sender DSN can only send an encrypted signal into one pipe.

When to add an agent

Do not put rollback credentials in CI just to react to an E2E failure. If you later need a signed action, run a separate Nerve agent on infrastructure you control and expose a bounded runbook.