Repository navigation
fix(agent): a bare scroll skips the pages an IndexedStack does not show; follow-up tests and notes for #899 and #901 - #902
Merged
Conversation
…README lists every promise word and its known false rejections
3 of 4 tasks
pbertsch
added a commit
that referenced
this pull request
Nov 18, 2026
… on Flutter 3.44.8 and 3.50.0 (draft) (#903) ## Summary Pickers and menus, first two widgets: `DropdownButton` and `PopupMenuButton`, assessed on Flutter 3.44.8 and Flutter 3.50.0. This is a **draft** so that it is reviewed before it is merged. - **A `pickers` screen** in the Flutter fixture app (`PROBE_FIXTURE_WIDGETS=pickers`): a `DropdownButton` with a hint, a disabled one with the id on the control and one with the id on a wrapper only; three `PopupMenuButton`s (a text child, the default icon with a tooltip, a disabled one). Every state a test checks is also shown as text, and `Item taps` counts every tap on a dropdown item. - **A suite** (`probe-tests/widgets/pickers.probe`, 17 tests) and **12 negative variants** (`probe-tests/negative/pickers.probe.expect-fail`, each with its expected message; three are known gaps, a correct step that fails today: issue #864). - **A finding that is fixed:** found on Flutter 3.50.0 with the agent of `main` at `15fba797` (issue #900), the items of a closed `DropdownButton` were seen (a `DropdownButton` keeps them in an `IndexedStack`). It is fixed by #901 (squash `2fb46d90`). The suite asserts it again, as its first test, and gets the same result on both versions. `native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart` runs the same check on the pickers screen and on a plain `IndexedStack` (by hand, once with each Flutter; no device; CI does not run it). It is a different file from the agent's own `probe_agent/test/indexed_stack_hidden_test.dart`. - **Matrix:** the Pickers and menus row (find, tap and read "see below" for the two widgets, `fixture` and `device test` set; `type` and `scroll` stay "not assessed"), a new section, a run paragraph, and the sentence from #901 that said the row stays "not assessed" is brought up to date. `NEXT.md` item 2 is "half done". The count of "not assessed" cells goes from 10 on `main` to 5, recounted from the family table with a script that reads the exact cell text. CHANGELOG, last bullet of Added. ## Results (Android emulator `ProbeWebViewSpike`, Android 15, API 35) Builds with the agent of `main` at `2fb46d90` (the fix of #900). The agent change of #902 (a bare `scroll` skips pages an `IndexedStack` does not show) landed after these runs and was not in the builds; the suite uses no bare `scroll`, so it does not exercise it. | | Flutter 3.44.8 | Flutter 3.50.0 | |---|---|---| | `pickers.probe` | 17 of 17 passed | 17 of 17 passed | | negative file | 0 passed, 12 failed | 0 passed, 12 failed | Every negative failed at its own step with the message in its comment, on both builds. 58 `restart the app` steps (29 per build), none failed in `before each test` (issue #823's rate, about 1 in 25, predicts about 2; one suite at a time on a no-window emulator, load not measured, so this does not show the failure is gone). An earlier version of the suite (16 tests, 11 negatives, no assertion about the closed dropdown's items) was run with the agent at `15fba797`, before the fix: 16 of 16 and 11 of 11 on both builds. That run found issue #900; it is not the current result. **Findings** (in the matrix): a tap on a widget under an open menu lands on the barrier (the menu closes, the widget is not pressed); a tap on the name of the chosen value in the open menu reaches the menu item, not the button under it; `tap` by tooltip and by id open a popup menu; a disabled dropdown and a disabled popup menu open nothing; `is disabled` does not read them (#864); `see #id contains` reads "" for them. ## Checked - Both Flutter versions were run for real, as above (the 3.50.0 build in a scratch copy with a private SDK). - `pickers_indexed_stack_regression_test.dart` passes on both versions with the fixed agent; with the agent before the fix it failed on 3.50.0 (run once, before the rework of the test). - The family file was merged with `main` by taking `main`'s version and re-adding the Pickers class and its two registry lines; it analyzes cleanly and is formatted. - A clean clone of the branch passes `go test ./scripts/`; `make ci-local` and the disclosure scan: see the head. ## Not checked / limits - Android only; iOS, a physical device and other API levels were not run. `DatePickerDialog`, `showTimePicker`, `CupertinoPicker`, `DropdownMenu`, `MenuAnchor`, long popup menus, keyboard navigation and type-ahead are not covered (listed in the matrix). - No test on an app with an `IndexedStack` of tab pages was made on a device. ## Docs The matrix, `NEXT.md` and the CHANGELOG are updated here; the website and the wiki do not describe this fixture family, so they do not change. ## Test plan - [x] device runs above (both Flutter versions), negative file - [x] regression test on both versions - [x] `make ci-local`, disclosure scan clean - [ ] Review
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.
Summary
The nits of the reviews of #899 and #901, in one small pull request (a site-check test and README change, and an agent change).
Agent (follow-up to #901):
scroll down(no selector) could still move a list on a page anIndexedStackdoes not show. It ranks scrollables by "can be scrolled", then "receives touches", then size; when the shown page's list was too short to scroll, a long list on a page that is not shown ranked higher and was moved, so nothing changed on screen and the step passed. The walk in_findScrollablenow skips the pages the stack does not show (probeIndexedStackShown, the helper of fix(agent): a widget under an IndexedStack child that is not shown is not visible, in Flutter 3.44 and 3.50 (#900) #901).probe_agent/test/indexed_stack_bare_scroll_test.dart(4 widget tests: the hidden page before and after the shown one, an index ofnull, and a control), run on Flutter 3.44.8 and 3.50.0. Against the previousexecutor.dart, 3 of the 4 fail on both versions (the control passes); with the change all pass.position <= shownin the tree walk): a password field on a page before and after the shown one (hasSecretField, pages 0 to 2). The five position mutants (<=and>=in the walk and in the scroll walk, and the filter dropped in the scroll walk) are killed on Flutter 3.50.0.docs/compat/MATRIX.md: the agent reads it as "shows nothing"; a rawRenderIndexedStackwith index -1 paints its first child, butIndexedStackasserts the index is null or in range in debug builds of both versions (checked in both SDK sources), so only a release build can reach it, and that was not run.IndexedStackmatrix row waits for a device run.Website truth check (follow-up to #899):
website/README.mdlists every promise word (it missed "automatically", "promptly", "immediately", "any time", "anytime") and says that a neighbouring sentence with one of them ("Cancel any time.", "Plans renew automatically.", "Access is granted to every member.") fails and must be reworded; three must-fail tests pin those known false rejections.Tests
probe_agentsuite: Flutter 3.44.8 350 passed, 2 skipped. Flutter 3.50.0 from a scratch copy of the package: 349 passed, 2 skipped, and one test that reads../internal/textfold/testdata/cases.jsonfailed only because the copy has no such folder.flutter analyzeon the changed files: clean.go test -count=1 ./scripts/,staticcheck ./scripts/,GOOS=windows go vet ./scripts/andnode website/scripts/check-truth.mjs(7 files match).Docs
docs/compat/MATRIX.md(the IndexedStack finding),CHANGELOG.md(Changed and Fixed, last in each),probe_agent/CHANGELOG.md,website/README.md.Not measured
IndexedStack; a device run;tapon a hidden child on a device.executor.dartwith a hidden page.Test plan
probe_agentsuite on 3.44.8 (and on 3.50.0 from a copy)