Repository navigation
test(embed): cut the e2e suite from 120 cases to the 46 only the embed can prove - #674
Merged
Merged
Conversation
The embed end-to-end file drops from 120 runtime cases to 46. Cases that only counted sockets, requests, RPC calls or attribute mirrors are gone, as are cases that restate behaviour owned by ui-kit-chat, ui-kit-tap, page, extensions/page, core and client tests. Cases whose cited coverage no longer exists after the apps/conciv consolidation stay. The heartbeat and draft send remount cases keep only their visible assertions with no fixed sleeps. Orphaned helpers, the backdrop code, the mount probe fixture and the native rebind global go with them. The element capture describe is untouched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the embed test-suite consolidation.
No open issues 🎉
What changed in this PR
Continues the test consolidation from #664 and #666 by reducing @conciv/embed coverage to integration scenarios intended to require the built widget, without changing production source.
Changes:
- Reduces the end-to-end suite from 120 to 46 cases, removing duplicate coverage, mechanism assertions, and redundant variants.
- Replaces fixed waits in draft-remount and heartbeat tests with observable events, and moves highlight-effect coverage into dispatch parity tests.
- Removes unused test helpers, fixture probes, and globals; adds an embed patch changeset.
| File | Description |
|---|---|
packages/embed/tests/helpers.ts |
Removes unused helpers and simplifies host and proxy setup. |
packages/embed/tests/globals.d.ts |
Removes the unused native-rebind test global. |
packages/embed/tests/fixtures/handle-entry.tsx |
Removes the mount-probe extension and its registration. |
packages/embed/tests/e2e/embed.it.test.ts |
Cuts redundant cases and streamlines retained integration coverage. |
.changeset/tests-cut-embed.md |
Records the test-suite reduction as an embed patch changeset. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Test consolidation, cut pass for
@conciv/embed. #664 folded the e2e files into one Playwright file with 120 runtime cases that run one after another (workers 1), 5.8 minutes on shard 1. An audit of every assertion found 42 restating a faster app, ui-kit or core test, 18 asserting socket, request or attribute counts, and 23 one-per-past-fix variants of a neighbour.What is cut
120 cases to 46, 3.2k lines to 1.7k, Playwright run 5.8 min to 2.1 min.
drafts.setcall counts,aria-busymirrors, native bridge payload shapes, transport field on the wire, a 32s wait followed by a poll count.requestId.__TSR_ROUTER__restore, thecreate concivhandle lifecycle (the kept remount case covers mount, unmount, remount).What stays against the audit
Cases whose cited app duplicate was deleted by #666: dead engine boot with Retry, mid-session outage notice appearing and clearing, model load retry, shell painting while the session list loads.
virtualize threshold cliffstays because the ui-kit-chat audit names it as the owner.page_effecthighlight enable, disable and toggle moved into the parity describe since nothing else proves the widget registers and drawshighlight.Two cases were reduced instead of deleted:
draft send remountwaits on the draft row and the visible reply instead of a 350ms sleep and a 2s DB poll; the heartbeat case waits on the session boot traffic instead of a 3s sleep and asserts only the notice.The
element capturedescribe is byte-identical: its Script button click flake is under RCA on its own branch.Cleanup
Helpers that lost all users are gone (
sendHeldTurn, the backdrop code, proxy request and socket counters, upgrade blocking, theembedBundleexport is internal again), the mount probe lefthandle-entry.tsx,concivNativeRebindleftglobals.d.ts. No src changes, no new exports, no new files.Verification
TURBO_CONCURRENCY=1 VITEST_MAX_FORKS=1 turbo run test --filter=@conciv/embed: 17 unit, 46 e2e passed (the first local run hit the element capture flake once; the rerun was green).@conciv/embed.pnpm format:checkfails on two files underpackages/extensions/design/srcthat are unformatted on main; untouched here.🤖 Generated with Claude Code