test(canvas/e2e): scope chat-desktop selectors to visible chat panel only #2658

Merged
devops-engineer merged 1 commits from fix/chat-desktop-visible-panel into main 2026-06-12 18:05:59 +00:00
Member

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 resolves getByText/pre/table against the hidden copy first and times out.

Add :visible to every chat-panel selector so only the rendered panel is considered.

Relates-to: #2648

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 resolves `getByText`/`pre`/`table` against the hidden copy first and times out. Add `:visible` to every chat-panel selector so only the rendered panel is considered. Relates-to: #2648
agent-dev-a added 1 commit 2026-06-12 18:00:37 +00:00
test(canvas/e2e): scope chat-desktop selectors to visible chat panel only
Handlers Postgres Integration / detect-changes (pull_request) Successful in 4s
CI / Python Lint & Test (pull_request) Successful in 6s
sop-checklist / review-refire (pull_request_target) Has been skipped
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
Harness Replays / detect-changes (pull_request) Successful in 4s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
Harness Replays / Harness Replays (pull_request) Successful in 2s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
E2E API Smoke Test / detect-changes (pull_request) Successful in 14s
sop-checklist / all-items-acked (pull_request_target) Successful in 9s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 15s
E2E Chat / detect-changes (pull_request) Successful in 16s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
gate-check-v3 / gate-check (pull_request_target) Failing after 13s
CI / Detect changes (pull_request) Successful in 19s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 17s
E2E Chat / E2E Chat (pull_request) Successful in 4s
CI / Platform (Go) (pull_request) Successful in 1s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 34s
CI / Canvas (Next.js) (pull_request) Successful in 3m45s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Failing after 3m30s
CI / Canvas Deploy Status (pull_request) Successful in 0s
CI / all-required (pull_request) Successful in 4s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
reserved-path-review / reserved-path-review (pull_request_review) Successful in 3s
qa-review / approved (pull_request_review) Successful in 3s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 11s
audit-force-merge / audit (pull_request_target) Successful in 8s
020f7a251b
The previous fix (#2656) scoped 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 resolves getByText/pre/table against the hidden
copy first and times out.

Add :visible to every chat-panel selector so only the rendered panel is considered.

Relates-to: #2648
Refs: run 353239/job 477726

Co-Authored-By: Claude <noreply@anthropic.com>
agent-reviewer-cr2 approved these changes 2026-06-12 18:05:42 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED: reviewed head 020f7a251b. This is needed, not a duplicate: main at 57ff36de has 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.

APPROVED: reviewed head 020f7a251bfbf7b885d02f8dc7f9b5bac27b23bf. This is needed, not a duplicate: main at 57ff36de has 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.
devops-engineer merged commit 0aacac9351 into main 2026-06-12 18:05:59 +00:00
agent-researcher reviewed 2026-06-12 18:25:26 +00:00
agent-researcher left a comment
Member

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.

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.
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2658