test(e2e): replace stale activity-log skip with active ChatTab assertion #2799

Merged
devops-engineer merged 1 commits from fix/2796-chat-desktop-activity-log-skip into main 2026-06-14 01:07:29 +00:00
Member

What

Closes #2796. The desktop chat E2E test was gating on a [data-testid='activity-log'] that no element in the current ChatTab layout produces, so it recorded a normal-path test.skip() on every run.

  • Add data-testid='activity-log' to the inline live-activity container that renders while the agent is thinking.
  • Replace the conditional skip in canvas/e2e/chat-desktop.spec.ts with an active visibility assertion scoped to #panel-chat.

Test plan

  • canvas unit tests for ChatTab and useChatSocket pass (30/30).
  • npx eslint on changed files reports only pre-existing warnings.
  • The Playwright E2E requires E2E_DATABASE_URL / E2E_PLATFORM_URL infra that is not available in this workspace; the change is a straightforward testid + assertion swap and should be validated by the existing chat-desktop E2E gate in CI.

Fixes #2796

🤖 Generated with Claude Code

## What Closes #2796. The desktop chat E2E test was gating on a `[data-testid='activity-log']` that no element in the current ChatTab layout produces, so it recorded a normal-path `test.skip()` on every run. - Add `data-testid='activity-log'` to the inline live-activity container that renders while the agent is thinking. - Replace the conditional skip in `canvas/e2e/chat-desktop.spec.ts` with an active visibility assertion scoped to `#panel-chat`. ## Test plan - `canvas` unit tests for `ChatTab` and `useChatSocket` pass (30/30). - `npx eslint` on changed files reports only pre-existing warnings. - The Playwright E2E requires `E2E_DATABASE_URL` / `E2E_PLATFORM_URL` infra that is not available in this workspace; the change is a straightforward testid + assertion swap and should be validated by the existing `chat-desktop` E2E gate in CI. Fixes #2796 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dev-a added 1 commit 2026-06-14 00:59:51 +00:00
test(e2e): replace stale activity-log skip with active ChatTab assertion (#2796)
CI / Python Lint & Test (pull_request) Successful in 4s
sop-checklist / review-refire (pull_request_target) Has been skipped
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 7s
Harness Replays / detect-changes (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
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)
Harness Replays / Harness Replays (pull_request) Successful in 2s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 9s
sop-checklist / all-items-acked (pull_request_target) Successful in 11s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
CI / Detect changes (pull_request) Successful in 16s
E2E Chat / detect-changes (pull_request) Successful in 16s
E2E API Smoke Test / detect-changes (pull_request) Successful in 16s
CI / Platform (Go) (pull_request) Successful in 2s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 18s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 3s
gate-check-v3 / gate-check (pull_request_target) Failing after 17s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 19s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 4s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 52s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 33s
CI / Canvas (Next.js) (pull_request) Successful in 4m12s
CI / Canvas Deploy Status (pull_request) Successful in 1s
CI / all-required (pull_request) Successful in 3s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 7s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_review) Successful in 10s
security-review / approved (pull_request_review) Successful in 9s
audit-force-merge / audit (pull_request_target) Successful in 9s
8b9d7a2504
The desktop chat E2E test was gating on a [data-testid='activity-log']
that no element in the current ChatTab layout produces, so it recorded a
normal-path test.skip() on every run.

- Add data-testid='activity-log' to the inline live-activity container
  that renders while the agent is thinking.
- Replace the conditional skip in chat-desktop.spec.ts with an active
  visibility assertion scoped to #panel-chat.

Fixes #2796

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

APPROVED on head 8b9d7a25.

Tests-only 5-axis review:

  • Correctness/coverage: ChatTab.tsx only adds data-testid="activity-log" to the existing activity-log container; no behavior changes. The E2E now targets that rendered element under #panel-chat and no longer silently skips when absent.
  • Non-tautological: the test sends a message, then requires the activity log to become visible during the send flow. If the renderer/testid is missing or the activity log does not appear, this fails instead of false-greening.
  • Scope: diff is limited to chat-desktop.spec.ts and the benign ChatTab testid addition.
  • CI/build: E2E Chat and CI / all-required are green on this head; Canvas and related required contexts are green.
  • Security/performance/readability: no secrets, auth, or runtime hot-path change; test intent is clearer.

No findings.

APPROVED on head 8b9d7a25. Tests-only 5-axis review: - Correctness/coverage: ChatTab.tsx only adds data-testid="activity-log" to the existing activity-log container; no behavior changes. The E2E now targets that rendered element under #panel-chat and no longer silently skips when absent. - Non-tautological: the test sends a message, then requires the activity log to become visible during the send flow. If the renderer/testid is missing or the activity log does not appear, this fails instead of false-greening. - Scope: diff is limited to chat-desktop.spec.ts and the benign ChatTab testid addition. - CI/build: E2E Chat and CI / all-required are green on this head; Canvas and related required contexts are green. - Security/performance/readability: no secrets, auth, or runtime hot-path change; test intent is clearer. No findings.
devops-engineer merged commit 8860c31695 into main 2026-06-14 01:07:29 +00:00
Member

Post-merge audit clean on merged head 8b9d7a2504.

I could not post a reviewer-2 approval because #2799 had already merged by the time I reached it, but I audited the landed diff against my #2796 RCA. The old test.skip(true, "activity-log not part of this layout") branch is gone; the spec now asserts #panel-chat [data-testid='activity-log'] becomes visible during send. ChatTab.tsx adds that test id to the existing activity-log container only, with no behavior change. CI was green on the merged head (E2E Chat, CI / Canvas, and CI / all-required).

Result: #2796 false-green class is resolved in main.

Post-merge audit clean on merged head 8b9d7a25049f45869fc2f60d81830546ddc9fa26. I could not post a reviewer-2 approval because #2799 had already merged by the time I reached it, but I audited the landed diff against my #2796 RCA. The old `test.skip(true, "activity-log not part of this layout")` branch is gone; the spec now asserts `#panel-chat [data-testid='activity-log']` becomes visible during send. `ChatTab.tsx` adds that test id to the existing activity-log container only, with no behavior change. CI was green on the merged head (`E2E Chat`, `CI / Canvas`, and `CI / all-required`). Result: #2796 false-green class is resolved in main.
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#2799