From a7d0a672d59bf8985a6fc0e61b49015fabd96513 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 15 May 2026 17:03:40 +0530 Subject: Phase 1 working: captive portal, DNS hijack, NAT-based access control - Fix WiFi init order: netif creation before esp_wifi_init, set mode before set_config - Replace broken netif input filter with NAPT on/off per authentication state - NAPT disabled by default, enabled when client granted, disabled on revoke - Fix test helpers: use -I wlp59s0 for ping, handle nslookup exit code 1 - All 20 API tests pass, all 6 smoke tests pass --- package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package.json (limited to 'package.json') diff --git a/package.json b/package.json new file mode 100644 index 0000000..d6e270b --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "esp32-tollgate-tests", + "version": "1.0.0", + "private": true, + "scripts": { + "test": "node tests/api.mjs && node tests/network.mjs", + "test:api": "node tests/api.mjs", + "test:network": "node tests/network.mjs", + "test:portal": "npx playwright test tests/captive-portal.spec.mjs", + "test:smoke": "node tests/smoke.mjs" + }, + "devDependencies": { + "@playwright/test": "^1.52.0" + } +} -- cgit v1.2.3