test(canvas/e2e): scope chat-desktop selectors to visible chat panel only #2658
Reference in New Issue
Block a user
Delete Branch "fix/chat-desktop-visible-panel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #2656.
The previous fix scoped chat assertions to
#panel-chat [data-testid='chat-panel'], but that locator can still match a hidden ConciergeShell chat panel in addition to the visible one. Playwright then resolvesgetByText/pre/tableagainst the hidden copy first and times out.Add
:visibleto every chat-panel selector so only the rendered panel is considered.Relates-to: #2648
APPROVED: reviewed head
020f7a251b. This is needed, not a duplicate: main at57ff36dehas E2E Chat failing, while this PR's E2E Chat and CI/all-required are green. The diff is scoped to canvas/e2e/chat-desktop.spec.ts and only adds :visible to selectors already narrowed by #2656, covering the remaining wait/history/file-input/markdown panel locators that can still resolve to the hidden ConciergeShell ChatTab. No product code, trigger, secret, auth, or performance-impacting changes found in the 5-axis pass.Verified #2658 is a test-only visible-panel selector fix for chat-desktop: selectors remain scoped to #panel-chat and add :visible to avoid matching the hidden ConciergeShell copy. PR E2E Chat/all-required was green on head
020f7a25, so I concur this closes the selector regression.