k_card/tests
Morten V. Christiansen 139698cab5 Fix Android Playwright tests: connectOverCDP + card reconnect
launchBrowser() hangs indefinitely on Chrome 145 in the Android
emulator. Replaced with chrome-command-line proxy flag + force-stop/
restart + connectOverCDP. A polling retry loop (max 15 s) handles
CDP startup variance.

proxy_service.dart: added _ensureCardOpen() which calls isCardAttached()
and re-runs _tryOpenCard() if the emulator socket was closed (e.g. after
a bridge restart). Called before makeCredential and getAssertion in all
three handler paths so the app reconnects automatically without restart.

playwright.config.js: global timeout 180 s → 60 s.

All 4 tests in k_phone_android.spec.js now pass (16 s total).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 21:41:36 +02:00
..
card_emulator.py Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00
card_emulator_bridge.py Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00
k_client_portal.spec.js Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00
k_phone_android.spec.js Fix Android Playwright tests: connectOverCDP + card reconnect 2026-05-09 21:41:36 +02:00
k_phone_portal.spec.js Add Playwright acceptance tests for k_phone proxy routing 2026-05-08 12:43:40 +02:00
k_phone_proxy.spec.js Add Playwright acceptance tests for k_phone proxy routing 2026-05-08 12:43:40 +02:00
test_k_proxy.py Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00
test_k_server.py Add k_server assertion verification tests + clarify session login comment 2026-05-08 12:16:08 +02:00