Skip to content

Mark G5 (widget frontend e2e) closed - #537

Merged
brentrager merged 2 commits into
mainfrom
g5-gapdoc-update
Aug 23, 2026
Merged

Mark G5 (widget frontend e2e) closed#537
brentrager merged 2 commits into
mainfrom
g5-gapdoc-update

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

Closes G5 in docs/Planning/Feature Gaps.md (per the standing rule from #534 that closing a gap edits that file).

Implementation: SmooAI/chat-widget#46.

What actually closed it

The gap doc said the widget had no Playwright suite. It had six spec files — but ci.yml never invoked test:e2e, so nothing had ever run. Run for the first time, 2 of 8 were red:

  • repro-stream-mock.spec.ts mocked WebSocket but not fetch, so the widget POSTed the real production /internal/resume-by-fingerprint on mount, got a 403, and the console error tripped its own page-error assertion. A "mock" spec that depended on prod being reachable.
  • Streaming had no guard. The spec asserted only the final assistant text — which a widget ignoring every stream_token frame also satisfies. Confirmed by deleting streaming from the mock and watching the spec stay green.

Both fixed, plus a new e2e/streaming.spec.ts that withholds eventual_response so only stream tokens can produce on-screen text, and a PR/nightly CI split where a missing SMOOAI_GATEWAY_KEY fails loudly instead of skipping green.

Verified on the widget PR: the E2E (credential-free) job ran on pull_request and logged 9 passed, 0 skipped.

Docs-only change; no code touched in this repo.

🤖 Generated with Claude Code

The widget's Playwright specs existed but no CI job ever invoked them, so the
suite was standing coverage that had never executed — and 2 of 8 were red when
first run. Records what closed it, plus the two findings worth generalising:
a "mock" spec that silently depended on production, and a streaming assertion
that could not detect streaming being removed.

Implementation: SmooAI/chat-widget#46

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6ece052

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@brentrager
brentrager merged commit 4821fed into main Aug 23, 2026
1 check passed
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.

1 participant