Repository navigation
Description
Summary
Two Desktop smoke checks currently report infrastructure failures even though the affected product UI is healthy. Both reproduce from the current main source at 1ef843304 and are outside the MCP renderer refactor in #2035.
Current behavior
1. Programmatic real-window smoke uses a stale Search modal selector
apps/desktop/src/main/main-window.ts still queries:
.maka-search-modaldialog.maka-search-modal[open]closest('.maka-search-modal')
The current Search modal exposes the stable contract data-maka-contract="search-modal". In a real window, the modal opens and focuses the search input, but smoke:programmatic-window reports the modal and focus checks as failed.
This is a recurrence of selector drift previously addressed by #80.
2. Storybook visual smoke treats a missing optional favicon as a story failure
The static Storybook server returns 404 for /favicon.ico. System Chrome emits:
Failed to load resource: the server responded with a status of 404
The visual smoke harness records that console error against the first story, currently product-onboarding--needs-connection @ wide, even though the story and all of its actual resources render successfully. A direct request trace confirmed that the missing URL is only /favicon.ico.
Expected behavior
- Programmatic window smoke detects the open Search modal, backdrop/open state, and trapped focus through the current stable DOM contract.
- Storybook smoke does not fail because an optional favicon is absent.
- Missing story assets and all other unexpected console errors must remain failures.
- No production UI, Runtime, IPC, credential, or lifecycle behavior changes.
Acceptance criteria
-
npm --workspace @maka/desktop run smoke:programmatic-windowpasses its Search modal presence and focus checks. - A contract/regression test binds the diagnostic to the current Search modal contract.
- The Storybook static smoke path serves or narrowly handles
/favicon.icowithout weakening other console-error checks. - The Storybook visual smoke suite passes with the MCP and onboarding stories included.
- Relevant script tests, Desktop tests, and repository gates pass.
Evidence boundary
The selector mismatch is present in the latest remote main. The favicon URL was confirmed through a real Storybook static build and browser request trace. These are test-harness reliability fixes, not product regressions.
Activity
xuruiray commentedon Aug 4, 2026
Opened #2101 as a Draft PR to address both smoke-harness false failures. It is intentionally limited to test infrastructure and includes targeted programmatic-window and Storybook HTTP regression coverage.