Skip to content

test(den-web): move the dashboard tile identity unit test next to its module - #4404

Merged
benjaminshafii merged 1 commit into
devfrom
fix/dashboard-identity-test-placement
Sep 4, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
fix/dashboard-identity-test-placement

Conversation

@yomgui

@yomgui yomgui commented Sep 4, 2026

Copy link
Copy Markdown
Member

Why dev is red

openwork-tests-unit on dev failed at 13c282d (#4398) with:

spec-boundary-ratchet failed:
- dashboard-element-identity.test.ts: imports product source (../../apps/...) — unit tests belong next to the module they test, not in evals/specs

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 of dashboardElementKey that 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 as dashboard-mcp-app-catalog.test.ts) and register it in den-web's test script; delete it from evals/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.
  • den-web 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.

… 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.
@vercel

vercel Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 4, 2026 7:06am UTC
openwork-den Ready Ready Preview Sep 4, 2026 7:06am UTC
openwork-diagnostics Ready Ready Preview Sep 4, 2026 7:06am UTC
openwork-landing Ready Ready Preview, v0 Sep 4, 2026 7:06am UTC

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

4 active deployments
Preview – openwork-landing — b312453e Deployed Sep 4, 2026 by vercel[bot]
Preview – openwork-app — b312453e Deployed Sep 4, 2026 by vercel[bot]
Preview – openwork-den — b312453e Deployed Sep 4, 2026 by vercel[bot]
Preview – openwork-diagnostics — b312453e Deployed Sep 4, 2026 by vercel[bot]
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.

2 participants