test: add safe opt-out smoke tests and E2E modal flow tests #21

Closed
opened 2026-02-28 01:56:12 +00:00 by mik-tf · 0 comments
Member

Problem

The node opt-out (migration to Mycelium) flow has minimal test coverage:

  • Smoke tests only check empty body → 422 (2 tests)
  • No E2E tests for the opt-out modal UI

Solution

Add safe tests that exercise the prepare/status/submit endpoints and verify the modal UI flow — without ever submitting an on-chain transaction.

Smoke tests (8 new): prepare with valid input, invalid signer, read-only status check, missing session, etc.

E2E tests (5 new): page load, node cards, modal open/close, T&C checkbox enables proceed button, cancel without action.

## Problem The node opt-out (migration to Mycelium) flow has minimal test coverage: - Smoke tests only check empty body → 422 (2 tests) - No E2E tests for the opt-out modal UI ## Solution Add safe tests that exercise the prepare/status/submit endpoints and verify the modal UI flow — without ever submitting an on-chain transaction. **Smoke tests (8 new):** prepare with valid input, invalid signer, read-only status check, missing session, etc. **E2E tests (5 new):** page load, node cards, modal open/close, T&C checkbox enables proceed button, cancel without action.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mycelium/www_migrate_mycelium#21
No description provided.