test: safe opt-out smoke tests + E2E modal flow tests #22

Merged
mik-tf merged 1 commit from development_optout_tests into development 2026-02-28 01:58:40 +00:00
Member

Summary

  • Add 8 safe opt-out smoke tests to smoke-test.sh (prepare, status, submit error cases)
  • Add 5 E2E Playwright tests for opt-out modal flow (page load, specs, modal open, T&C checkbox, cancel)
  • All tests are safe — no on-chain transactions executed

Closes #21

Test

  • Smoke: ./scripts/smoke-test.sh https://staging.hub.projectmycelium.com → 37/37 pass
  • E2E: cd e2e && npx playwright test tests/node-optout-flow.spec.ts (needs TFGRID_MNEMONIC_DEVNET)
## Summary - Add 8 safe opt-out smoke tests to `smoke-test.sh` (prepare, status, submit error cases) - Add 5 E2E Playwright tests for opt-out modal flow (page load, specs, modal open, T&C checkbox, cancel) - All tests are safe — no on-chain transactions executed Closes #21 ## Test - Smoke: `./scripts/smoke-test.sh https://staging.hub.projectmycelium.com` → 37/37 pass - E2E: `cd e2e && npx playwright test tests/node-optout-flow.spec.ts` (needs TFGRID_MNEMONIC_DEVNET)
test: add safe opt-out smoke tests and E2E modal flow tests
All checks were successful
Test / check (pull_request) Successful in 2m10s
dcde790b70
Smoke tests (8 new):
- Prepare with valid input returns payload_hex + session_id
- Prepare with invalid signer returns 400
- Status endpoint returns node_id + opted_out fields
- Submit with missing/expired session returns 404

E2E tests (5 new):
- My Nodes page loads after login
- Node cards display hardware specs
- Move to Mycelium modal opens with T&Cs
- Proceed button disabled until T&Cs accepted
- Cancel closes modal without on-chain action

All tests are safe — no on-chain transactions executed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mik-tf changed title from WIP: safe opt-out smoke tests + E2E modal flow tests to test: safe opt-out smoke tests + E2E modal flow tests 2026-02-28 01:58:40 +00:00
mik-tf merged commit c19ea217d1 into development 2026-02-28 01:58:40 +00:00
Sign in to join this conversation.
No reviewers
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!22
No description provided.