Repository navigation
test(den-web): move the dashboard tile identity unit test next to its module - #4404
Merged
Merged
Conversation
… module #4390 added evals/specs/dashboard-element-identity.test.ts, which imports den-web source; #4398 landed minutes later with the spec boundary ratchet whose baseline predates that file, so dev's openwork-tests-unit went red on the combination. Unit tests belong beside the module they test: run it in den-web's bun suite and drop it from evals/specs.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (b312453e27a64f8525cc857dd32aaf153c93bb37). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
This branch was successfully deployed
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 dev is red
openwork-tests-unitondevfailed at 13c282d (#4398) with:Two PRs that were each green landed six minutes apart and conflict semantically: #4390 added
evals/specs/dashboard-element-identity.test.ts(a pure unit test ofdashboardElementKeythat imports den-web source), and #4398 added the spec boundary ratchet whose baseline was generated on a tree without that file. Neither CI run could see the other.Change
Move the test to
ee/apps/den-web/tests/dashboard-element-identity.test.ts(bun test, same style asdashboard-mcp-app-catalog.test.ts) and register it in den-web'stestscript; delete it fromevals/specs. No product change; the assertions are unchanged.Proof
pnpm --dir evals test(the failing step) → exit 0:spec-boundary-ratchet: 170 specs checked, no dependency violations, 232 pass / 0 fail.bun test tests/dashboard-element-identity.test.ts tests/dashboard-mcp-app-catalog.test.ts→ 7 pass / 0 fail.Docs/test-placement only; no runtime behaviour changes, so no journey spec is affected. The e2e proof for the dashboard fix (
dashboard-duplicate-capability-tiles.e2e.test.ts) is untouched.