* test(web): align workflow-agent-switch e2e tests with PR #743 behavior
PR #743 split agent.boot_ready from agent.ready and added pinnedSessionId
focus protection, breaking four expectations in workflow-agent-switch.spec.ts:
- on_turn_start no longer fires from StartCreatedSession; it now fires from
dispatchPromptAsync (user-message path). Test :204 now waits for the
profileA agent to be ready and sends a message to trigger the transition.
- SSR-load setActiveSession pins the initial primary, so workflow profile
switches no longer auto-yank the active dockview tab. Tests :420, :490,
:546, :614 now assert on the primary star marker (which still moves to
the new session) instead of the active-tab text.
Also fixes primaryStarInTab page-object helper: the IconStar is rendered as
a sibling of .dv-default-tab inside the [data-testid=session-tab-*] wrapper,
so the locator now anchors on the wrapper.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* test(web): harden workflow-agent-switch assertions
Add message-visible guard after sendMessage to surface silent failures
early. Align primaryStarInTab timeout with profileBTab (45 s) where the
cascade latency budget was already set at 45 s.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* test(web): drive on_turn_start via chat message in kanban-flow test
The HTTP create-with-start_agent path no longer fires on_turn_start; only
WS user messages do (dispatchPromptAsync). Switch the kanban-flow test to
create the task in Backlog and send the initial prompt as a chat message
so on_turn_start triggers. Verifies the same workflow behavior — Backlog
→ In Progress on on_turn_start, invalid step_id in on_turn_complete is
gracefully skipped — without depending on the dialog "Start Agent" path.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Kandev Agent <agent@kandev.dev>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>