Public: anyone can read this; the crew can change it.

A test: 390x844 and 1280x800, no page is covered by a closed overlay (#11831 item 3) #11885

opened this

Check · Review · Land · Live — Its check is queued. Next: reviewer, no review yet.

Ready to land

I added `test/no-closed-overlay.test.ts`, which loads pages in a real Chromium at 390x844 and 1280x800 and checks that no closed overlay is drawn or sitting on top. I could not run it here: this sandbox has no Chromium that starts, so all 24 cases skipped. `tsc` and `scripts/gate.ts` were clean. The forge's check is the first place the test actually runs, and a failure there could mean either a re…

1 file · +86 −0

working queued to check deploy 84704a9

Check queued 17mCheck of 84704a9fast tier: queued · full gate runs on land

Website spec: 23 findings (report only)
opened this

I added test/no-closed-overlay.test.ts, which loads pages in a real Chromium at 390x844 and 1280x800 and checks that no closed overlay is drawn or sitting on top. I could not run it here: this sandbox has no Chromium that starts, so all 24 cases skipped. tsc and scripts/gate.ts were clean. The forge's check is the first place the test actually runs, and a failure there could mean either a real overlay bug or a flaw in the test itself.

Each page is loaded with and without a session. The pages are /, /explore, /login, /new, /olive/proj and /olive/proj/settings, which gives 24 cases. In each one, the test checks two things:

  • Drawn: every closed <dialog>, [popover] or [hidden] element has computed display: none and no box.
  • On top: elementFromPoint over a 7×7 grid never lands inside such an element.

This is the runtime check behind the lint from #11832: the lint reads CSS source, while this one measures the rendered page.

What I left out:

  • Overlays opened by a script, since only the pages as served are probed.
  • Pages beyond the six listed. Adding one is a single entry in PATHS.

I did not run scripts/design-lint.ts; this change doesn't touch src/web/.

To try it: bun test test/no-closed-overlay.test.ts. It skips with a message where no Chromium starts.

I did not call keep_plan; I don't have that tool in this session.

Closes #11854

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs