Previously the session_list phase goal said 'The session list may be empty (no sessions yet) — that is fine' and 'Report done when you can see the session list screen (even if empty)'. This means an empty sessions list was treated as a test PASS, so every previous 'fix' was validated against a test that cannot detect the regression. Two changes: 1. _precreate_test_session(): calls POST /session via HTTP before the CUA starts. The session_list phase goal now explicitly names this session and requires it to be visible — if the app fails to load server sessions, the phase fails (not passes silently with an empty list). Falls back gracefully if the server is unreachable at pre-create time. 2. sessions_reload phase (new, critical): after completing the TypeScript task the test navigates back to the Sessions tab and asserts the list is non-empty. This catches the other variant of the regression — sessions vanishing after navigating away from a session and back. Both phases are now in the critical list, so a failure in either causes the overall test to report partial/fail instead of success. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
46 KiB
Executable File
46 KiB
Executable File