Skip to content

fix(test): use /formulation/worry so phone chrome dock is present in the assertion#1247

Merged
BigSimmo merged 2 commits into
codex/standardize-header-and-footer-behaviorfrom
copilot/resolve-failing-ci
Jul 26, 2026
Merged

fix(test): use /formulation/worry so phone chrome dock is present in the assertion#1247
BigSimmo merged 2 commits into
codex/standardize-header-and-footer-behaviorfrom
copilot/resolve-failing-ci

Conversation

Copilot AI commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

The new Playwright test added in this PR asserted dockBackdropDisplay === "none", but navigated to /?mode=documents whose home state sets heroOwnsPhoneComposer=true — preventing the bottom dock from rendering entirely. querySelector(".answer-footer-search-backdrop") returned null, yielding "missing" instead of "none".

Changes

  • tests/ui-phone-scroll.spec.ts — changed navigation target from /?mode=documents to /formulation/worry
    • /formulation/worry is a non-home GlobalSearchShell route: isStandaloneModeHome=falsedesktopHomeComposerSlotId=undefinedheroOwnsPhoneComposer=false → compact bottom dock IS rendered on phones
    • The backdrop div is in the DOM and correctly hidden via the display: none rule the PR introduced
    • Route has sufficient scrollable content to trigger the header/dock collapse assertions
    • Already exercised by the existing longRoutes scroll-geometry suite, so CI behaviour is well-understood

Verification

  • npm run verify:pr-local

During development, use npm run verify:cheap as the faster iteration gate before the final PR-local preflight.

  • npm run verify:ui when UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed
  • npm run verify:release before release or handoff confidence claims

For retrieval, ranking, selection, chunking, source/citation rendering, or answer-contract changes, verify:pr-local runs eval:rag:offline automatically. Run the offline command directly during iteration before spending a live eval.

  • npm run eval:retrieval:quality (must stay 36/36) when retrieval, ranking, selection, chunking, or scoring behavior changed — CI cannot run it (needs live keys), so run it locally and paste the summary. A metadata/governance-weighting change once buried correct docs (recall 1.0→0.76) and only this eval caught it.
  • npm run eval:rag -- --limit 15 + npm run eval:quality -- --rag-only when answer generation, the synthesis prompt, or answer post-processing changed (grounded-supported must not drop; citation-failure 0)
  • npm run check:production-readiness when clinical workflow, privacy, environment, Supabase, source governance, or deployment behavior changed
  • npm run check:deployment-readiness when deployment startup, hosting, or rollout behavior changed

Risk and rollout

Test-only change. No production code modified.

  • Risk: None
  • Rollback: N/A
  • Provider or production effects: None

Clinical Governance Preflight

Not applicable — no clinical, ingestion, retrieval, source, or environment behaviour changed.

Notes

@supabase

supabase Bot commented Jul 26, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

…hrome test

/?mode=documents in its home state sets heroOwnsPhoneComposer=true which
prevents the bottom dock from rendering, so .answer-footer-search-backdrop
inside .answer-footer-search-dock is absent from the DOM and the assertion
returns 'missing' instead of 'none'.

/formulation/worry is a non-home GlobalSearchShell route where
isStandaloneModeHome=false → desktopHomeComposerSlotId=undefined →
heroOwnsPhoneComposer=false → the compact bottom dock IS rendered on phones,
and the backdrop div is in the DOM (hidden via the new CSS rule).
Copilot AI changed the title [WIP] Fix CI issues in GitHub Actions workflow fix(test): use /formulation/worry so phone chrome dock is present in the assertion Jul 26, 2026
Copilot AI requested a review from BigSimmo July 26, 2026 00:59
@BigSimmo
BigSimmo marked this pull request as ready for review July 26, 2026 01:00
@BigSimmo
BigSimmo merged commit a5f0591 into codex/standardize-header-and-footer-behavior Jul 26, 2026
6 checks passed
@BigSimmo
BigSimmo deleted the copilot/resolve-failing-ci branch July 26, 2026 01:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad0b2d6f66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// is false here so the bottom dock IS rendered and the backdrop is present in
// the DOM (CSS hides it). /?mode=documents in its home state sets
// heroOwnsPhoneComposer=true and omits the dock entirely.
await gotoPhoneSurface(page, "/formulation/worry");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Select a route that actually renders the footer dock

When this test navigates to /formulation/worry, isInformationPage() classifies it as an information page (src/lib/information-pages.ts:42), while shouldShowSearchComposer suppresses composers on information pages unless isToolDetailWithFooterSearch() accepts them (global-search-shell.tsx:203-208,329-334); that exception covers only services, forms, and medications. Consequently, .answer-footer-search-dock remains absent, dockBackdropDisplay is still "missing", and the assertion expecting "none" fails. Use a non-information, non-home route that renders the compact dock.

Useful? React with 👍 / 👎.

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