upleb.uk

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

summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-20 01:02:20 +0530
committerYour Name <you@example.com>2026-05-20 01:02:20 +0530
commit59ea2f02c49a3c678ecae19f55d542b7442d6f7e (patch)
tree6c0b016fa2de6240e65f5bd351161baecb1638a9 /Makefile
parent565d6a715427ace0518f367acf3053d667479390 (diff)
test: fix Playwright Layer 2 tests - all 13 passingfeature/display-fix
- Fix SETUP_HTML innerHTML newline syntax error (single-quoted string can't span lines) - Fix route interception: use page.goto with http://tollgate.test/setup instead of page.setContent - Add **/setup route for serving mock HTML - Fix Layer 1 POST tests: handle ECONNRESET gracefully, accept any error message - Add Layer 1.5 redirect test (needs live board) - Add **/setup route to rescan test - Load page with waitUntil: networkidle
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 05c004e..0d196bd 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@ export
7IDF_PATH ?= $(HOME)/esp/esp-idf 7IDF_PATH ?= $(HOME)/esp/esp-idf
8PROJECT_DIR := $(shell pwd) 8PROJECT_DIR := $(shell pwd)
9BUILD_DIR := $(PROJECT_DIR)/build 9BUILD_DIR := $(PROJECT_DIR)/build
10PORT_A ?= /dev/ttyACM1 10PORT_A ?= /dev/ttyACM0
11PORT_B ?= /dev/ttyACM2 11PORT_B ?= /dev/ttyACM1
12PORT_C ?= /dev/ttyACM0 12PORT_C ?= /dev/ttyACM2
13PORT ?= $(PORT_A) 13PORT ?= $(PORT_A)
14BAUD ?= 460800 14BAUD ?= 460800
15TARGET ?= esp32s3 15TARGET ?= esp32s3
@@ -87,7 +87,7 @@ endef
87.PHONY: help setup detect-ports detect-chip detect-all 87.PHONY: help setup detect-ports detect-chip detect-all
88.PHONY: flash flash-a flash-b monitor monitor-a monitor-b 88.PHONY: flash flash-a flash-b monitor monitor-a monitor-b
89.PHONY: test test-unit test-integration test-e2e test-all 89.PHONY: test test-unit test-integration test-e2e test-all
90.PHONY: test-smoke test-api test-network test-portal test-payment 90.PHONY: test-smoke test-api test-network test-portal test-payment test-wifi-setup
91.PHONY: test-reset-auth test-session-expiry test-dns-firewall test-cvm 91.PHONY: test-reset-auth test-session-expiry test-dns-firewall test-cvm
92.PHONY: tokens wallet-setup wallet-info wallet-balance mint-token send-token 92.PHONY: tokens wallet-setup wallet-info wallet-balance mint-token send-token
93.PHONY: clean erase-nvs reset serial-log bootstrap-config 93.PHONY: clean erase-nvs reset serial-log bootstrap-config
@@ -118,6 +118,7 @@ help:
118 @echo " test-dns-firewall DNS hijack + NAT filter test" 118 @echo " test-dns-firewall DNS hijack + NAT filter test"
119 @echo " test-session-expiry Session lifecycle with 65s expiry wait" 119 @echo " test-session-expiry Session lifecycle with 65s expiry wait"
120 @echo " test-cvm ContextVM protocol integration test" 120 @echo " test-cvm ContextVM protocol integration test"
121 @echo " test-wifi-setup WiFi setup page E2E tests (Playwright)"
121 @echo "" 122 @echo ""
122 @echo "ContextVM:" 123 @echo "ContextVM:"
123 @echo " cvm-pubkey Print board's ContextVM npub" 124 @echo " cvm-pubkey Print board's ContextVM npub"
@@ -273,6 +274,11 @@ test-portal:
273 @echo "=== Running Playwright portal tests ===" 274 @echo "=== Running Playwright portal tests ==="
274 cd tests/e2e && npx playwright test captive-portal.spec.mjs 275 cd tests/e2e && npx playwright test captive-portal.spec.mjs
275 276
277test-wifi-setup:
278 $(call _require_board_lock)
279 @echo "=== Running WiFi setup E2E tests ==="
280 cd tests/e2e && npx playwright test wifi-setup.spec.mjs
281
276test-payment: 282test-payment:
277 $(call _require_board_lock) 283 $(call _require_board_lock)
278 @echo "=== Running payment tests ===" 284 @echo "=== Running payment tests ==="