Repository navigation
test(frontend): audit cleanup — drop overlapping operator cases, launcher cases on controlled time - #144
Merged
Conversation
…ses on controlled time - Remove the App.scriptureSearch 'gen 1 1-3' case; scriptureQuery's unit case and App.plan's Ctrl+Enter range case cover it. - Fold the Plan header count into the ordered-list plan case. - Run the audience QR, Show on projector, live wave and elapsed launcher cases on fake timers; the elapsed case now advances the clock and checks the value in Simple and Advanced.
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.
Frontend test-only cleanup from the test audit (run at 6b65570, still current HEAD). No production code or generated bundles touched.
Operator
App.scriptureSearch.test.tsx›resolves "gen 1 1-3" to Genesis 1:1-3. Still covered by:scriptureQuery.test.ts›resolves "gen 1 1-3" to Genesis 1:1-3(range end, label)App.plan.test.tsx›Ctrl+Enter adds the best match, clears the box, and sends nothing(finds the range result by its accessible name)counts its passages in its headintolists the planned passages in order, numbered, always in view(same header-scoped.operator-card-head .operator-section-countquery).Kept untouched: search-box and focused-result Meta+Enter tests, the active spoken-language no-POST test. Operator Settings left for its own audit.
Launcher (
frontend/src/launcher/App.test.tsx)Four cases now run on
vi.useFakeTimers()with the suite'stry { … } finally { app.unmount(); vi.useRealTimers() }pattern, still against the realApp, demo bridge, polling and rendered controls:toggles the audience QR code beside the projector and shows the operator code in Networkkeeps the projector action beside its select in both viewsmoves the live wave with the pipeline levels, flat without them, the meter at restuses the same elapsed status in both views and restores the idle microphone meter on stop— now assertsLive · 00:00:00at go-live,00:00:06after 6 s (Simple and Advanced),00:00:09after 3 s more in Advanced. The old regex passed with a frozen00:00:00.Mutation checks (each fault applied alone, then reverted)
!shownidentify_screensstarted_atPlan count:
{items.length + 1}and{items.length - 1}each fail the merged plan case.Timing (four launcher cases combined, sum of test durations, 3 focused runs each)
(Audit reference ≈ 7.48 → 2.75 s.)
Checks
npm run lint,npm run typecheck,npm run format:checkclean;npm test -- --run: 66 files, 753 tests passed, 0 skipped.