test(web): repair unrelated source-regex unit failures #460

Open
opened 2026-06-05 09:51:59 +00:00 by simon · 0 comments
Owner

While validating fix/check-history-metrics on top of origin/main at e8ce8f914b, the full web unit suite failed in tests unrelated to monitoring history metrics.

Reproduction:

pnpm install --frozen-lockfile
pnpm --filter web test:unit

Observed failures:

  • apps/web/lib/automation/ct-automation-credential-step-core.test.mjs: credential wizard UI and actions stay browser safe rejects privateKey in ct-automation-jobs-client.tsx.
  • apps/web/lib/automation/ct-automation-job-shell.test.mjs: CT-Automation jobs area is routed, navigable, and browser-safe cannot find data-testid="ct-automation-create-panel".
  • apps/web/lib/legal-notice.test.mjs: sidebar links to the CT-Ops documentation cannot find the expected Forgejo repo href source.
  • apps/web/lib/notifications/notification-bell.test.mjs: notification bell awaits mark-as-read before navigating to a resource fails its source-order assertion.

Focused monitoring-chart tests pass, pnpm --filter web type-check passes, and pnpm --filter web lint exits 0 with existing warnings. These failures appear to be existing/source-contract issues outside the current monitoring-history metric change.

While validating `fix/check-history-metrics` on top of `origin/main` at `e8ce8f914b`, the full web unit suite failed in tests unrelated to monitoring history metrics. Reproduction: ```sh pnpm install --frozen-lockfile pnpm --filter web test:unit ``` Observed failures: - `apps/web/lib/automation/ct-automation-credential-step-core.test.mjs`: `credential wizard UI and actions stay browser safe` rejects `privateKey` in `ct-automation-jobs-client.tsx`. - `apps/web/lib/automation/ct-automation-job-shell.test.mjs`: `CT-Automation jobs area is routed, navigable, and browser-safe` cannot find `data-testid="ct-automation-create-panel"`. - `apps/web/lib/legal-notice.test.mjs`: `sidebar links to the CT-Ops documentation` cannot find the expected Forgejo repo href source. - `apps/web/lib/notifications/notification-bell.test.mjs`: `notification bell awaits mark-as-read before navigating to a resource` fails its source-order assertion. Focused monitoring-chart tests pass, `pnpm --filter web type-check` passes, and `pnpm --filter web lint` exits 0 with existing warnings. These failures appear to be existing/source-contract issues outside the current monitoring-history metric change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/ct-ops#460
No description provided.