Skip to content

Backport Posit Assistant e2e fixes to rel-autumn-hawkbit - #18792

Merged
gtritchie merged 3 commits into
rel-autumn-hawkbitfrom
test/backport-pa-e2e-ui-adaptations
Sep 12, 2026
Merged

gtritchie merged 3 commits into
rel-autumn-hawkbitfrom
test/backport-pa-e2e-ui-adaptations

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Backports three e2e-only commits from main. The release branch's test runs
install the latest Posit Assistant release, so without these the Posit
Assistant suite fails on 1.4.0 and later.

  • 9bae5ac43f Match chat messages by role testid, not data-message-id (Match chat messages by role testid, not data-message-id #18781).
    PA 1.4.0 added a per-turn footer that carries data-message-id and renders
    after the message row, so messageItem.last() resolved to a cost and timing
    row instead of the reply. Matches the ChatMessage row wrapper and the
    MessageRenderer content div instead, and routes the two inline
    [data-message-id] locators in conversation-history through the page object.

  • 904450a2c7 Tolerate U+200E in the skill-selection e2e assertion (Tolerate U+200E in the skill-selection e2e assertion #18782).
    PA 1.4.0 prefixes every tool-call caption with LEFT-TO-RIGHT MARK, which
    JavaScript's \s class does not match, so the assertion failed against a
    rendered string that is visually identical to what it expected. The character
    class also accepts the bare whitespace 1.3.1 and earlier emit.

  • 230931063e Keep a slow Posit AI sign-in from failing the whole shard (e2e: keep a slow posit ai sign-in from failing the whole shard #18780).
    A slow redirect after submitting the password was classified as a credential
    failure, which failed the auth setup project and left every dependent test as
    "did not run". Clicks with noWaitAfter so the 30s URL wait owns that budget,
    and treats the step as fatal only when the page shows a rejection message.
    Also widens the readline-notification test's settle window and has its prompt
    require the executeCode tool.

The first two match against both the currently released assistant and 1.4.0+,
so the suite passes whichever version a build pulls.

Cherry-picked clean with no conflicts. npm run typecheck passes in
e2e/rstudio, and playwright test --list enumerates all 84 Posit Assistant
tests.

gtritchie and others added 3 commits September 11, 2026 15:31
PA 1.4.0 (#2395) added a per-turn footer that carries data-message-id and
renders after the message row, so messageItem.last() resolved to a cost and
timing row reading "8:54 PM" instead of the reply. Every chat test that
asserts on the last message failed on all three platforms, and the dead-turn
detector read those footers as non-substantive, reporting them as the provider
dropping turns mid-stream.

Match the ChatMessage row wrapper and the MessageRenderer content div instead,
so the locator tracks what a message is rather than what shares its id. The
matched set is unchanged against the currently released assistant, so the
suite runs against both it and the pre-release builds the gate exercises.

Route the two inline [data-message-id] locators in conversation-history
through the page object so there is one definition to keep correct.

(cherry picked from commit 9bae5ac)
Posit Assistant 1.4.0 began prefixing every tool-call caption with U+200E
(LEFT-TO-RIGHT MARK) so that an rtl-truncated file path keeps its leading
slash on the left, in posit-dev/assistant d6d3901e7.

JavaScript's \s character class spans \u2000-\u200a and so does not match
U+200E. The assertion therefore failed against a rendered string that is
visually identical to what it expected, deterministically on Windows,
Linux and macOS in the 1.4.1 release gate.

Match the mark explicitly. The class also accepts the bare whitespace that
1.3.1 and earlier emit, so the test passes against both released versions.

(cherry picked from commit 904450a)
A slow redirect after submitting the password on login.posit.cloud was
classified as a credential failure (the step was marked fatal), which
failed the auth setup project and left every dependent test as "did not
run". Click with noWaitAfter so the 30s URL wait owns that budget instead
of the runner's 10s actionTimeout, and only treat the step as fatal when
the page actually shows a rejection message; a stalled redirect now falls
through to the transient path and the @ai tests skip.

Also give the readline-notification test the same settle window the rest
of the suite gives an assistant turn (the agent keeps working after
readline() returns), size its timeout for two turns, and spell out in the
prompt that the code must be run with the executeCode tool rather than
written to a file.

(cherry picked from commit 2309310)
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
2580 0 184 11
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 647 0 38 4
✅ desktop-macos 655 0 33 2
✅ desktop-windows 652 0 39 4
✅ server-linux 596 0 44 1
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit cbfc5dea95ec92bae6fb59aa858dfb3750107d15 - Run #951

@gtritchie
gtritchie merged commit 6ad2b7f into rel-autumn-hawkbit Sep 12, 2026
34 checks passed
@gtritchie
gtritchie deleted the test/backport-pa-e2e-ui-adaptations branch September 12, 2026 00:21

This branch was previously deployed

1 inactive deployment
e2e-playwright — cbfc5dea Deployed Sep 11, 2026 by gtritchie via windows / e2e-desktop-windows (1) #951
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants