The rule-preview search test loads its lazy chunk before it runs (#1080) #1084
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1080-appframe-rule-preview-flake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1080. Test-only.
Summary
The test "choosing a rule opens it in place" failed once in CI with
Unable to find role="dialog" and name "Tidal Surge".React.lazyinuseRulePeek.jsx), and this test is the first to open one. On a loaded machine, Vite transforming that module takes longer thanfindByRole's 1,000 ms.beforeAllin thatdescribeimportsRulePeek.jsx, with its own 60 s limit, so the load is outside any test's timeout. No timeout was raised and no component changed.Evidence
One test, a fresh vitest process per run, on the dev host:
The fix removes the dialog error, not every failure under heavy load. What remains there is the whole test exceeding 15 s on an overloaded host, which this PR does not change.
Test plan
npx vitest run src/shell: 173 passed, 1 skipped.🤖 Generated with Claude Code