upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/WEB_WIFI_SETUP_PLAN.md
diff options
context:
space:
mode:
Diffstat (limited to 'WEB_WIFI_SETUP_PLAN.md')
-rw-r--r--WEB_WIFI_SETUP_PLAN.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/WEB_WIFI_SETUP_PLAN.md b/WEB_WIFI_SETUP_PLAN.md
index b80ec3a..12a2fb5 100644
--- a/WEB_WIFI_SETUP_PLAN.md
+++ b/WEB_WIFI_SETUP_PLAN.md
@@ -74,8 +74,21 @@ WiFi setup.
74 - Added `s_total_retries` counter (MAX_TOTAL_RETRIES=10) 74 - Added `s_total_retries` counter (MAX_TOTAL_RETRIES=10)
75 - Transitions to DISPLAY_ERROR after all retries exhausted 75 - Transitions to DISPLAY_ERROR after all retries exhausted
76- [x] WiFi QR code visible on BOOT and ERROR screens (hardware verified) 76- [x] WiFi QR code visible on BOOT and ERROR screens (hardware verified)
77- [ ] Test `/setup` page from phone browser
78- [x] Write integration test `tests/integration/wifi_setup.mjs` 77- [x] Write integration test `tests/integration/wifi_setup.mjs`
78- [x] Pushed to `ngit.orangesync.tech` (commits `aa58b47`..`402f4f2`)
79
80### Phase 5: Playwright E2E for `/setup` page
81- [ ] Plan test scenarios for `/setup` page (requires unconfigured board)
82- [ ] Write `tests/e2e/wifi-setup.spec.mjs`
83 - Test: `/setup` returns HTML with scan button when `network_count == 0`
84 - Test: `/wifi/scan` returns JSON array of APs
85 - Test: `/wifi/connect` rejects invalid JSON
86 - Test: `/wifi/connect` rejects missing SSID
87 - Test: `/wifi/status` returns `{connected, ip, ssid}`
88 - Test: `/setup` redirects to `/` when WiFi already configured
89 - Test: full flow — scan → select AP → enter password → connect
90- [ ] Add `make test-wifi-setup` target to Makefile
91- [ ] Run E2E test against live board with erased SPIFFS
79 92
80## Commits 93## Commits
81 94
@@ -84,3 +97,4 @@ WiFi setup.
84| `aa58b47` | feat: web-based WiFi setup via captive portal, portrait-only display | 97| `aa58b47` | feat: web-based WiFi setup via captive portal, portrait-only display |
85| `2e65cdf` | fix: transition display to ERROR after WiFi retries exhausted | 98| `2e65cdf` | fix: transition display to ERROR after WiFi retries exhausted |
86| `cf4ac1b` | feat: add WiFi QR code to BOOT and ERROR screens | 99| `cf4ac1b` | feat: add WiFi QR code to BOOT and ERROR screens |
100| `402f4f2` | docs: update web WiFi setup plan checklist with progress |