Skip to content

Close the gaps of the browser test harness - #192

Merged
pournasserian merged 7 commits into
mainfrom
52-harness-gaps
Dec 1, 2026
Merged

pournasserian merged 7 commits into
mainfrom
52-harness-gaps

Conversation

@pournasserian

@pournasserian pournasserian commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

#52 listed what the C0 harness could certify wrongly. Most items were fixed when #50 merged (1167121), but none was ticked. A fresh agent checked each item against main, without my notes, and tried to break it. This pull request closes what it found partly done, plus the residual gaps it showed.

The items

Item Status before Evidence or change
Reject missing pages done OpenAsync requires response.Ok; OpenRejectsAMissingRoute. Here: the final address must be the one asked for (a redirect to another page fails), and a path's own query is extended instead of being broken (entry?id=x?density=compact gave HTTP 200 "Entry not found"). Tests OpenExtendsTheQueryOfThePath, OpenRejectsAPageInAnotherDensity
Verify the requested appearance done Theme and direction were checked. Here: density too
Reject an empty mode selection done ConfiguredListMustSelectAtLeastOneMode
Decide the target-size rule done Strict 24 by 24, no spacing or inline exception: RECIPE §10, CONTRIBUTING, plan §5 and §11
Real hit areas partly Here: a box is cut by the ancestors that clip it (following the containing blocks, so the top layer, fixed and absolute boxes escape as they do on screen); an open tree item is measured by its row, not its group; a control with an empty box is probed; the probe is a 5 by 5 grid, not four corners. Tests TargetSizeMeasuresWhatAClippingAncestorLeaves, …TheRowOfAnOpenTreeItem, …ProbesAControlWithAnEmptyBox
Include operable targets, exclude disabled ones done Here: also menuitemcheckbox, menuitemradio, combobox and contenteditable, and nothing that is not drawn (a link in a closed details was measured before). Test TargetSizeChecksMenuItemsThatAreNotButtons
Browser accessible name done LabelledByWinsOverAriaLabelOnTheKeyboardStop
Visible focus is not any outline done Here: a change must be at least 3:1 (RECIPE's rule for a needed mark), not only a change. Test KeyboardDoesNotShowAnIndicatorThatCannotBeSeen (a 2 % ring). Three tests sampled the wrapper's border, where the ring covers grey (1.73:1); they now sample the ring on the background (x = -1). The background-only sample uses navy instead of gold, which was 1.4:1
Exercise the interaction done Here: a transition that is still waiting for its delay when the window ends counts. Test MotionFailsOnATransitionThatWaitsForItsDelay
Movement vs colour partly Here: getAnimations() is back, for animations and transitions of a property that moves or resizes: a pseudo-element, a travelling background-position, a spinner in steps. Colour and opacity are still not motion. Test MotionFailsOnMovementThatNoBoxShows (three cases)
Launch the gallery that was built done Assembly metadata from the referenced project; test-startup.mjs artifacts. Here: the nightly workflow runs test-startup.mjs
Control the child environment done (residual) Here: the fixture passes none of the parent's host settings (ASPNETCORE_*, Kestrel__*, Logging__*, and the environment, addresses, content root, hosting startup and startup hooks of DOTNET_*). New cases console and kestrel in test-startup.mjs
Readiness without default log verbosity partly A parent with Logging__Console__LogLevel__Default=Warning and the JSON formatter made a healthy gallery time out (shown: 60 s timeout before the change, pass after). Fixed by the scrub above
#49: top-level interactive boundary done ADR 0001 update, plan §4.4, render-modes guide
#49: library policy vs framework limit done the same places
#49: old focus rule superseded, "must be tested" done ADR 0001 rule 3 struck through and linked
#49: one source vs one served file done plan §6. Here: ADR 0002 decision 11, which still said "the same stylesheet", is struck through and linked to its update

Also here

Left as they are, with the reason

  • A run whose rows are all skipped exits green. --minimum-expected-tests 1 does not help: skipped rows count. CI's parts select whole namespaces in all three modes, so no CI job can skip everything. Not changed.
  • A target that another element covers in part. The grid probes only boxes under the minimum. Probing every target would flag controls under an open menu or dialog, which is no fault of their size.
  • Tests that call page.GotoAsync themselves (about ten, for markup they set up) skip OpenAsync's checks by design.

Checks

  • dotnet build -c Release -warnaserror: 0 warnings, 0 errors. Component tests: 797 passed.
  • Chromium, before rebasing on Add the tab actions, the short input and the tall field, and decline the rest #188: every class that measures targets, 630 rows: 627 passed, and the 3 that failed (focus raced by the router's heading, a checkbox click, a menu focus) passed alone; every row that checks motion, 108 passed; every class that reads a focus indicator, 169 rows, green after the sample points above. After rebasing on Add the tab actions, the short input and the tall field, and decline the rest #188: the classes it touched (tabs, text input, number input, field, settings, content list, shell parts), 239 passed.
  • Firefox and WebKit (Linux container): the harness samples and guards (HelperFaultTests, KeyboardIndicatorTests, HarnessGuardTests, WcagSamples), 87 of 87 in each.
  • node tests/FluentCMS.Components.Browser/test-startup.mjs console|kestrel|environment|logging: all pass. console timed out before the change.
  • markdownlint: 0 issues.
  • After the review: target-size samples 15 of 15; every class that measures targets, 633 rows, 628 passed, the 5 that failed being the three breadcrumb rows (fixed per axis, then 24 of 24) and two timing rows that passed alone; EntryEditorTests 33 of 33.
  • Nightly on the first commit, 46572795442: the new Gallery startup job passed on the runner; every WebKit job and Firefox WebAssembly forms passed; three Firefox rows failed (the skeleton pixel read, a :focus that matched two elements, a Shift+Tab walk). Two of them also failed on main before this branch; none is a check this pull request changes. They are Three Firefox rows meet the router's heading focus or read a pixel outside the window #193.

Closes #52

@pournasserian

pournasserian commented Dec 1, 2026 •

Copy link
Copy Markdown
Member Author

Review by a fresh agent on the diff and #52. It found six real problems, three of which let the target check pass what it should flag; all are changed:

  1. A nested tree could pass a small row: a hit on a grandchild counted for the root. A hit in any group inside the item is now not its own, and the hit grid is centred on the item's row, not its whole subtree. Test TargetSizeDoesNotCountTheItemsOfANestedGroup.
  2. scrollIntoView scrolled boxes that hide their overflow, which a person cannot. Those keep their position, per axis (a breadcrumb that scrolls sideways and hides vertically still scrolls sideways). Test TargetSizeDoesNotScrollABoxThatHidesItsOverflow.
  3. A radio hidden for its label was skipped before its label was measured. The label is now measured, and the grid centres on it. Test TargetSizeMeasuresTheLabelOfAHiddenRadio.
  4. The containing-block walk knew only position and transform. It now also takes translate, rotate, scale, filter, perspective, contain, container-type and will-change, for absolute and fixed boxes alike, and clips each axis only where that axis is clipped.
  5. DOTNET_* configuration (DOTNET_Kestrel__…, DOTNET_Logging__…) passed through. Names with DOTNET_ and __ are scrubbed too.
  6. The kestrel startup case only failed where port 1 cannot be bound. It now uses a TEST-NET-3 address (203.0.113.1), which no machine has, plus the DOTNET_ forms. Checked on Windows: with the scrub disabled the case fails ("The gallery ended before it listened"), with it the case passes.

The review found the motion check, the 3:1 formula and the x = -1 sample points, the query, address and density checks, the nightly job and the ADR edit correct.

CI's red row (EntryEditorTests.OverlaysHaveTheirTransitionsAndNothingMovesWhenMotionIsReduced, server): the publish menu did not stay open. It is the race of #182: the test focused the toggle and pressed Enter before the router's focus reached the heading. The same wait as #183 (FormsPage.FocusSettledAsync) is now in that test and in the seven other entry editor tests that used focus or keys right after opening a page; none was there for #52's checks.

After the changes (Chromium, local): the target-size samples 15 of 15; every class that measures targets, 633 rows: 628 passed, and the 5 that failed were the three breadcrumb rows (fixed by point 2, then 24 of 24) and two timing rows that passed alone (the empty-table-header of #149's list in a filter-menu test, and a skip-link focus); EntryEditorTests 33 of 33.

@pournasserian
pournasserian merged commit b57256e into main Dec 1, 2026
16 of 17 checks passed
@pournasserian
pournasserian deleted the 52-harness-gaps branch December 1, 2026 04:43
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.

Review test harness gaps and prerendering guidance from #50 and #49

1 participant