Skip to content

e2e: explain chat sends blocked by a missing model, and attach positai.log on external-server runs #19261

Closed

Description

@gtritchie

plots-pane-activation.test.ts failed on Linux Server in two PR runs (#19255, #19256) within the same two minutes. Posit Assistant had briefly lost its model list and showed its provider-setup overlay (posit-dev/assistant#2850), so Send stayed disabled. The tests reported this as a 10 s timeout on sendBtn.click(), which doesn't explain anything, and the runs had no assistant backend log to explain it with.

Two harness changes:

  • ChatPaneActions.sendChatMessage waits for Send to enable after typing. If Send stays disabled for lack of a model ("Please pick a model"), it skips the test when Posit AI is unreachable from the runner too, the same policy as other provider outages. Otherwise it fails with a message that names the state.
  • On external-server runs, a failing test gets the Posit Assistant backend's log (positai.log) attached, trimmed to the lines written since the test started. Session logs are attached only on Desktop today, because only Desktop exposes a local log directory. The server's copy is fetched through the session's /files/ endpoint.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions