Skip to content

fix: restore data-testid="chat-interface" removed by #340#437

Merged
malhotra5 merged 4 commits into
mainfrom
fix/restore-chat-interface-testid
May 14, 2026
Merged

fix: restore data-testid="chat-interface" removed by #340#437
malhotra5 merged 4 commits into
mainfrom
fix/restore-chat-interface-testid

Conversation

@malhotra5
Copy link
Copy Markdown
Member

Summary

Restores the data-testid="chat-interface" attribute that was accidentally dropped in #340.

Root cause

PR #340 added left padding (pl-0 md:pl-4) to the ChatInterface wrapper div and rewrote the element in a single line, silently removing the data-testid attribute in the same edit:

-      <div
-        className="h-full flex flex-col justify-between pr-0 md:pr-4 relative"
-        data-testid="chat-interface"
-      >
+      <div className="h-full flex flex-col justify-between pl-0 md:pl-4 pr-0 md:pr-4 relative">

Impact

Two test paths depend on getByTestId('chat-interface'):

  • tests/e2e/snapshots/collapsible-thinking.snapshot.spec.ts – uses it as both the "conversation page loaded" signal and the screenshot target. All 4 collapsible-thinking snapshot tests failed (the first timed out after 20 s, the remaining 3 were skipped by serial mode).
  • tests/e2e/live/real-agent-server-conversation.spec.ts – uses waitForTestId(page, "chat-interface") and page.getByTestId("chat-interface").screenshot(...).

Fix

Restore the attribute while keeping the new left-padding class from #340. No other changes.


Note on remaining snapshot failures: The 4 settings-page.snapshot.spec.ts failures (analytics consent modal, home page, settings page, settings app page) are stale baselines — the UI changed visually across #340, #386, and #427. After this PR merges, trigger a baseline update via the Snapshot Tests workflow with update_snapshots=true.

This PR was created by an AI agent (OpenHands) on behalf of the user.

@malhotra5 can click here to continue refining the PR

PR #340 added left padding to the ChatInterface wrapper div but
accidentally dropped the data-testid attribute in the same edit.
This broke both the collapsible-thinking snapshot tests and the live
e2e test, which both use getByTestId('chat-interface') as the load
signal and screenshot target.

Co-authored-by: openhands <openhands@all-hands.dev>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-canvas Ready Ready Preview, Comment May 14, 2026 3:57pm

Request Review

@malhotra5 malhotra5 marked this pull request as ready for review May 14, 2026 15:47
Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🟢

Clean fix that restores the accidentally removed test-id. The collapsible-thinking snapshot updates are appropriate.

Note: The settings-page snapshots were also updated here (analytics consent modal, home screen, settings page, settings app page). Your description mentions these should be done separately, but including them is fine if they were generated in CI. If you generated these locally, CI might reject them due to rendering differences (fonts, OS). If CI fails, just regenerate via the workflow with update_snapshots=true as you mentioned.

Risk Assessment: 🟢 LOW - Test-only change, no production logic impact.

@malhotra5 malhotra5 enabled auto-merge (squash) May 14, 2026 15:50
… ruleset

The branch ruleset requires a status check named 'test-and-build', but the
CI job's 'name: Test and build (${{ matrix.os }})' field caused GitHub to
report the check as 'Test and build (ubuntu-24.04)' — so the required check
was never satisfied and PRs could not merge.

The matrix only ever had a single entry (ubuntu-24.04), so drop it and the
custom name field entirely. Without a 'name:' override, GitHub falls back to
the job key ('test-and-build') as the check run name, matching the ruleset.

Co-authored-by: openhands <openhands@all-hands.dev>
@malhotra5 malhotra5 merged commit 59d2a01 into main May 14, 2026
7 checks passed
@malhotra5 malhotra5 deleted the fix/restore-chat-interface-testid branch May 14, 2026 16:02
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.

3 participants