diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9103426a..16b8d9ad 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -94,6 +94,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- **The Flutter and Dart release log (`docs/compat/RELEASES.md`) records the deprecations that reach the agent, with a measurement.** The 3.50 migration to `material_ui` and `cupertino_ui` and the 3.44 `cacheExtent` deprecation were read in full from their pages; what the agent imports, the 25 analyzer issues of `probe_agent` (22 are `Radio` deprecations, 2 `cacheExtent`, 1 an unused variable), what we do about each, and a dated measurement of the agent before #855 on the real `material_ui` and `cupertino_ui` packages (a widget test: a disabled button read as enabled, no `Checkbox` or `Switch` read as checked, no tooltip selector; issue #852), with what `main` does now (the fail-closed stopgap #855 and #861 refuse those state steps, re-run once with the agent of #855 on the real packages; the design is in #857, not built; the tooltip gap is unchanged). Docs only.
- **`docs/compat/NEXT.md` lists what the matrix still does not assess, in the order to do it.** The 10 cells that still say "not assessed" in the family table (counted from `MATRIX.md`; there were 24 before the scroll cells, Layout and Gestures were assessed, and the Gestures `scroll` cell, which said "n/a", now says "not assessed" like the Layout one), what the matrix says about iOS, the standalone `material_ui` and `cupertino_ui` packages (issue #852) and other devices, each with its cost and state. Docs only.
- **The sample dashboard (`/demo/`) has the site header and an Apply button, dates that follow the build day, realistic commit hashes, and tables that fit a 400 px screen.** The three pages are now built on every site build from `website/demo-templates/` by `website/scripts/build-demo.mjs`: every date moves by whole days so that the newest day is the build day (UTC), and the apply link is read from `website/sellable.json`; the generated `website/public/demo/` is not committed. Each page starts with the existing "Sample data: a made-up fixture app, not a real team" notice (now also saying the dates move with each build), then a header with links to the site and "Apply as a design partner". The commit hashes are ten hex characters instead of `cccccccccc`; file names break at their slash and never inside a word; dates do not wrap. `scripts/site_demo_test.go` runs the real generator and checks the dates, the header and Apply link, that the notice comes first, the hashes, the file-name and date rules and that the pages reference nothing external. `scripts/site_third_party_test.go` also reads the three templates, and the internal-links test resolves `/demo/` pages from them, because the generated pages are not committed. No data, verdict state or feature was added. Website only.
+- **The Flutter fixture app has a pickers screen and a suite for it, and the matrix has its Pickers and menus results.** `PROBE_FIXTURE_WIDGETS=pickers` builds a screen with a `DropdownButton` (enabled, and disabled with the id on the control and on a wrapper) and three `PopupMenuButton`s (a text child, the default icon with a tooltip, disabled), and `probe-tests/widgets/pickers.probe` (17 tests) passed on Flutter 3.44.8 and 3.50.0 on an Android emulator, with the agent after the fix of issue #900 (#901) in the build; its 12 negative variants (`probe-tests/negative/pickers.probe.expect-fail`) all fail at their own step on both. The matrix records that a tap on a widget under an open menu lands on the barrier, that a tap on the name of the chosen value hits the menu item and not the button under it, that `is disabled` does not read these controls (issue #864), and that the items of a closed `DropdownButton` were seen on Flutter 3.50.0 with the agent at `15fba797` (issue #900, fixed by #901). `native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart` runs that check on the pickers screen (by hand, once with each Flutter). Tests and docs only.
### Changed
- **`probe-mcp --http` writes its token to a file for each address and port: `http-token-
-`, not `http-token`.** Two servers of one user used to overwrite each other's token file, and the first one's token was then no longer on disk (the server only warned). Now each address and port has its own file (`http-token-127.0.0.1-7391`; `::1` is written `__1`, as a colon is not allowed in a file name everywhere, and an IPv6 zone is part of the name, in hexadecimal after `-z` (a zone longer than 32 characters is written as a hash after `-h`, so a name stays short): `fe80::1%en0` and `fe80::1%en1` are two files, and two servers never share a file name), a server removes only its own, and two servers do not interfere, also the same port on `127.0.0.1` and `::1`. A start on an address and port that is taken still fails before any file is touched. The path is still printed on start; a script that read the fixed `http-token` path must read the file of its address and port, or take the path from the start-up line.
diff --git a/docs/compat/MATRIX.md b/docs/compat/MATRIX.md
index af097179..9bd571fc 100644
--- a/docs/compat/MATRIX.md
+++ b/docs/compat/MATRIX.md
@@ -13,7 +13,7 @@ Cells: *find* (select by text, id or type), *tap*, *type* (enter text), *scroll*
| Buttons | `ElevatedButton`, `TextButton`, `IconButton`, `CupertinoButton` | see below | see below | n/a | see below (scroll) | see below | `buttons` screen | `probe-tests/widgets/buttons.probe` |
| Text input | `TextField`, `TextFormField`, `CupertinoTextField` | see below | see below | see below | see below (scroll) | see below | `textinput` screen | `probe-tests/widgets/textinput.probe` |
| Selection controls | `Checkbox`, `Switch`, `Radio`, `Slider`, `CupertinoSwitch` | see below | see below | n/a | see below (scroll) | see below | `selection` screen | `probe-tests/widgets/selection.probe` |
-| Pickers and menus | `DropdownButton`, `PopupMenuButton`, `DatePickerDialog`, `CupertinoPicker` | not assessed | not assessed | not assessed | not assessed | not assessed | not assessed | not assessed |
+| Pickers and menus | `DropdownButton`, `PopupMenuButton`, `DatePickerDialog`, `CupertinoPicker` | see below (`DropdownButton`, `PopupMenuButton`; `DatePickerDialog`, `CupertinoPicker` not assessed) | see below | not assessed | not assessed | see below | `pickers` screen | `probe-tests/widgets/pickers.probe` |
| Lists and scrolling | `ListView`, `GridView`, `SingleChildScrollView`, `Scrollbar`, `PageView` | see below (`PageView` not assessed) | see below | n/a | see below | see below | `lists` screen | `probe-tests/widgets/lists.probe` |
| Dialogs and sheets | `AlertDialog`, `BottomSheet`, `SnackBar`, `CupertinoAlertDialog` | see below | see below | n/a | n/a | see below | `dialogs` screen | `probe-tests/widgets/dialogs.probe` |
| Navigation | `AppBar`, `NavigationBar`, `TabBar`, `Drawer`, `Navigator` | see below (`AppBar`, `Navigator` only) | see below | n/a | see below (scroll) | see below | `navigation` screen | `probe-tests/widgets/navigation.probe` |
@@ -81,7 +81,7 @@ the radio's own group value when it has one and otherwise the nearest `RadioGrou
- **Tooltips are selectors**: an icon button or a floating action button, which show no text, are found by their tooltip text, the same way they are by `#id`.
- **`is enabled` / `is disabled` on a wrapper read the control it holds** (issue #860, agent change): with the id on a keyed `SizedBox`, a `KeyedSubtree` or a `Semantics(identifier:)` around a disabled button, `is enabled` used to pass. The agent now reads the target, then the controls it holds (the first on each branch), then its ancestors; held controls that agree give the answer, controls that disagree refuse ("holds 2 controls that disagree"). Measured in agent widget tests (the fixture puts its ids on the controls themselves, so its suites did not hit this). Only the controls the agent reads count: a disabled `Radio`, `CupertinoButton`, `Slider` or `DropdownButton` still passes `is enabled` (issue #864).
- **A button inside an `IgnorePointer` gets no tap, and the step says so** (issue #842, agent change): before, `tap` passed with no warning while nothing happened, so even `--fail-on-warning` passed. Now the step prints `tap target ... is inside an IgnorePointer, so it receives no taps` when the `IgnorePointer` cuts off a handler of the target's own (a button's own `InkWell`), and `--fail-on-warning` fails it. A passive label inside an `IgnorePointer` under a parent that takes the tap (a `ListTile` whose title is wrapped) gets the tap and no such message. Measured in agent widget tests and with the `layout` screen of the Layout family on both named devices. Not handled: a `GestureDetector` around an `IgnorePointer` around a passive text gets no tap and nothing warns (noted in issue #842).
-- **A child of an `IndexedStack` that is not shown, and the items of a closed `DropdownButton`, are not on screen** (issue #900, agent change): `see` passed and `don't see` failed on them on Flutter 3.50.0, because only Flutter 3.44.8 wraps each hidden child in a `Visibility(visible: false)`, which was the one thing the agent recognised; in both versions `RenderIndexedStack` paints and hit-tests only the child at its `index`, and the hidden child stays mounted, laid out at its size and attached. The agent now reads the stack's index (a `null` index shows nothing; nested stacks count each level). Measured in agent widget tests (`probe_agent/test/indexed_stack_hidden_test.dart`) on Flutter 3.44.8 and 3.50.0, no device: before the change 9 of its 10 tests failed on 3.50.0 (the tenth is the ordinary-`Stack` control) and all passed on 3.44.8; after it all pass on both. The `Pickers and menus` row stays "not assessed": no fixture screen or device test covers `DropdownButton`, so no cell changed (the count in `NEXT.md` stays 10). A bare `scroll down` (no selector) used to pick a long list on a page that is not shown when the shown page's list was too short to scroll (measured on Flutter 3.44.8 and 3.50.0: 3 of 4 tests in `indexed_stack_bare_scroll_test.dart` failed before the change, none after); it now skips the pages the stack does not show. An index that is negative is read as "shows nothing"; a raw `RenderIndexedStack` with index -1 paints its first child, but `IndexedStack` asserts the index is null or in range in debug builds of both versions, so only a release build can reach it, and it was not run. Left on a bare child walk on purpose: the recorder tracks every mounted text field, hidden pages included, so a password field on a page that is not shown is still masked; the element dump, the screenshot boundary and the walks that start below an element already found do not read the stack's index, and were not measured with a hidden page. Not measured: an app with tab pages in an `IndexedStack`, `tap` on a device (an `IndexedStack` row in this matrix waits for a device run), other widgets that hide children without an `Offstage` or `Visibility` widget.
+- **A child of an `IndexedStack` that is not shown, and the items of a closed `DropdownButton`, are not on screen** (issue #900, agent change): `see` passed and `don't see` failed on them on Flutter 3.50.0, because only Flutter 3.44.8 wraps each hidden child in a `Visibility(visible: false)`, which was the one thing the agent recognised; in both versions `RenderIndexedStack` paints and hit-tests only the child at its `index`, and the hidden child stays mounted, laid out at its size and attached. The agent now reads the stack's index (a `null` index shows nothing; nested stacks count each level). Measured in agent widget tests (`probe_agent/test/indexed_stack_hidden_test.dart`) on Flutter 3.44.8 and 3.50.0, no device: before the change 9 of its 10 tests failed on 3.50.0 (the tenth is the ordinary-`Stack` control) and all passed on 3.44.8; after it all pass on both. The `Pickers and menus` row was "not assessed" when that change was made, because no fixture screen or device test covered `DropdownButton`; the pickers screen covers it since (see the Pickers and menus section). A bare `scroll down` (no selector) used to pick a long list on a page that is not shown when the shown page's list was too short to scroll (measured on Flutter 3.44.8 and 3.50.0: 3 of 4 tests in `indexed_stack_bare_scroll_test.dart` failed before the change, none after); it now skips the pages the stack does not show. An index that is negative is read as "shows nothing"; a raw `RenderIndexedStack` with index -1 paints its first child, but `IndexedStack` asserts the index is null or in range in debug builds of both versions, so only a release build can reach it, and it was not run. Left on a bare child walk on purpose: the recorder tracks every mounted text field, hidden pages included, so a password field on a page that is not shown is still masked; the element dump, the screenshot boundary and the walks that start below an element already found do not read the stack's index, and were not measured with a hidden page. Not measured: an app with tab pages in an `IndexedStack`, `tap` on a device (an `IndexedStack` row in this matrix waits for a device run), other widgets that hide children without an `Offstage` or `Visibility` widget.
Not covered by the screen: `ButtonBar` (deprecated in the catalog), `ToggleButtons` and `SegmentedButton` (selection), `PopupMenuButton` and `DropdownButton` (pickers and menus), a button inside a dialog or a list, a double tap, a button that scrolls into view, and a button under an overlay. The 8 variants of the suite that must fail
(`probe-tests/negative/buttons.probe.expect-fail`) were run: all 8 fail with the message that says why (a count one too many, `is disabled` on an enabled button and `is enabled` on a disabled one, the disabled button's counter expected above 0, a held press taken for no tap, a label that is not on the screen, a tap taken for a long press, one button's tooltip finding another).
@@ -266,6 +266,36 @@ Measured on Flutter 3.44.8 with the agent from main, on `Compat-Pixel-API35` (An
Not covered by the screen: `Dismissible` (a swipe to dismiss), `Draggable` and `DragTarget`, `onPanUpdate` and other drags, `Listener` (raw pointer events), `onTapDown`/`onTapUp` without `onTap`, `HitTestBehavior` on an empty area, and physical devices. Flutter 3.50.0 was not run for this family.
+### Pickers and menus: DropdownButton and PopupMenuButton (`native-test-apps/flutter`, build flag `PROBE_FIXTURE_WIDGETS=pickers`, `probe-tests/widgets/pickers.probe`)
+
+Measured on Flutter 3.44.8 and Flutter 3.50.0, on the Android emulator `ProbeWebViewSpike` (Android 15, API 35), **with the agent of `main` after the fix of issue #900 (#901, `2fb46d90`)**: the suite (17 tests) passed 17 of 17 on each build, and the 12 variants that must fail (`probe-tests/negative/pickers.probe.expect-fail`) failed on each, every one at its own step with the message in its comment. The agent change #902 (a bare `scroll` skips the pages an `IndexedStack` does not show) landed after these runs and was not part of them; the suite uses no bare `scroll`. A first version of this suite was run with the agent of `main` at `15fba797`, before the fix, and found the issue below.
+
+| Widget (fixture id) | Step | Result |
+|---|---|---|
+| `DropdownButton` with a hint (`wf_dropdown`) | `tap #wf_dropdown` and `tap "Pick a color"` (the hint) open the menu; `tap "Red"` chooses an item | pass (`Color: Red`) |
+| the same | reopen, choose another; the value shows in the button; `Item taps` counts every tap on a menu item | pass |
+| the same, closed, open and after a choice | `don't see "Blue"` and `don't see "Spare"` while it is closed; `see "Blue"` while it is open; `don't see "Blue"` after a choice | pass on both versions (with the agent after the fix of #900; see the finding below) |
+| the same, with an item already chosen | `tap "Green"` in the open menu while the button also shows "Green" | pass: the tap reaches the **menu item** (the counter goes up), not the button under it |
+| the same | `go back` closes the open menu without choosing; the page answers again | pass |
+| a `PopupMenuButton` under an open dropdown (`wf_popup`) | `tap "Actions"` while the dropdown is open | pass: the tap lands on the **barrier**: the menu closes and the button is not pressed (`Action: none`); a second tap opens the popup menu |
+| a disabled `DropdownButton`, the id on the control (`wf_dropdown_off`) and on a wrapper (`wf_dropdown_off_w`) | `tap` | pass: nothing opens and the page still answers |
+| the same | `see #wf_dropdown_off is disabled` | **fail**: the agent answers "is enabled" (a known gap, issue #864); the variant is in the negative file as a gap |
+| `PopupMenuButton` with a text child (`wf_popup`) | `tap "Actions"` or `tap #wf_popup`, then `tap` an item | pass (`Action: Copy`) |
+| `PopupMenuButton` with the default icon and a tooltip (`wf_popup_icon`) | `tap "More options"` (the tooltip) or `tap #wf_popup_icon`, then an item | pass (`Icon menu: Rename`) |
+| a popup menu, open | `go back`; a `tap` outside; the page under it is still seen; the same item twice | pass |
+| a disabled `PopupMenuButton` (`wf_popup_off`) | `tap` | pass: nothing opens |
+| the same | `see #wf_popup_off is disabled` | **fail**: "is enabled" (issue #864) |
+| a `DropdownButton` or a `PopupMenuButton` | `see #id contains ""` | **fail**: it reads "" (the agent reads the text of the matched widget itself, and a button that holds a `Text` is not one: read it by its text, `see "Pick a color"`) |
+
+**Findings.**
+- **A menu is a route, and the agent finds it by its texts.** A tap that opens one is followed by `wait for animations to end` in the suite, which waits for the menu to open or close; the items of a `PopupMenuButton` exist only while its menu is open.
+- **A tap on a widget under an open menu lands on the barrier** (the same as for a dialog): the menu closes and the widget is not pressed.
+- **The items of a closed `DropdownButton` (a `DropdownButton` keeps them in an `IndexedStack`) were seen on Flutter 3.50.0 and are not any more.** Found with the agent of `main` at `15fba797` (issue #900): `see "Blue"` passed on a closed dropdown and `don't see "Blue"` failed on 3.50.0, and the other way round on 3.44.8; fixed by #901 (the agent now reads the stack's index; the finding and the change are in the Layout section above). The failure message of a negative in the device run before the fix listed "Red", "Green" and "Blue" among the visible texts on 3.50.0 and not on 3.44.8. Since the fix the suite asserts it (the first row of this table's closed-dropdown 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` through the agent's `see` (by hand, once with each Flutter; no device): it passes on both versions with the fixed agent. The agent's own tests are `probe_agent/test/indexed_stack_hidden_test.dart`.
+- **`is disabled` does not read these controls** (issue #864): a disabled `DropdownButton` and a disabled `PopupMenuButton` read as enabled, the id on the control or on a wrapper. The comment on that issue has the measurement of `is enabled` passing on them.
+- **`see #id contains` reads the text of the matched widget only**, so it reads "" for these controls.
+
+Not covered by the screen: `DropdownMenu` (it takes text), `DatePickerDialog` and `showTimePicker`, `CupertinoPicker` and `CupertinoDatePicker`, `MenuAnchor` and `MenuBar`, a popup menu long enough to scroll, nested menus, checked and radio items, keyboard navigation and type-ahead, iOS, a physical device and other API levels.
+
### WebView content (`native-test-apps/flutter-webview`, `probe-tests/webview.probe`)
An Android app with a `webview_flutter` 4.14.1 `WebViewWidget` that shows `assets/page.html` (the page of `native-test-apps/android-webview`, kept equal by a test) from the app's own assets, next to
@@ -312,6 +342,8 @@ the table.
**Scroll** (the section above) was run as five builds by each Flutter (3.50.0 in a scratch copy with a private SDK, 3.44.8 as above) on the emulator `ProbeWebViewSpike` (Android 15, API 35), with the agent of `main` at `42e0c67c`: every positive suite passed on each build (Selection controls 6 tests, Text input 10, Buttons 8, Navigation 5, Text and display 10), and every negative file failed all its tests (2, 10, 10, 7 and 16), each at its own step. The runs were done twice: the first round (agent at `ceda5559`, a fixed 1200 dp space) passed everywhere too, and was repeated after a review changed the space to a screen height plus 600 dp and after #855 landed; this section counts the second round. In both rounds **no test failed in `before each test`**: 84 restarts on each build, 168 in all per round; at the rate of issue #823, about 1 in 25, about 7 failures would be expected per round, and none happened. The runs were one suite at a time on a no-window emulator and the load was not measured, so this does not show that the failure is gone or why it did not occur. In the first round one run of the Selection negative file had to be repeated because that file had no `before each test` block (the tests ran without a restart, 105 ms each); `scripts/negative_suites_test.go` now fails on a family suite or a negative file without that block. Not run: the agent of `main` after #861 (a later change to how `is enabled` reads a wrapped control; it does not touch these screens' steps beyond `is checked` on the checkbox, which the second round ran with the agent of #855).
+**Pickers and menus** were run on a build by each Flutter (`--dart-define=PROBE_AGENT=true --dart-define=PROBE_FIXTURE_WIDGETS=pickers`; the 3.50.0 build in a scratch copy with a private SDK) on the emulator `ProbeWebViewSpike` (Android 15, API 35), agent port 5605, **with the agent of `main` at `2fb46d90` (the fix of #900) in the build; the agent change of #902 was not in it**: `pickers.probe` 17 of 17 and the negative file 0 passed, 12 failed on each build, each negative at its own step. 58 `restart the app` steps (29 on each build) and none failed in `before each test`; at the rate of issue #823, about 1 in 25, about 2 would be expected, and the run was one suite at a time on a no-window emulator with the load not measured, so this does not show that the failure is gone. An earlier run of a first version of the suite (16 tests, 11 negatives) used the agent at `15fba797`, before the fix. Not run: iOS, a physical device, another API level, other screen sizes or text scales.
+
## Unsupported
None recorded yet; none has been assessed.
diff --git a/docs/compat/NEXT.md b/docs/compat/NEXT.md
index ba575ad5..ac3afa43 100644
--- a/docs/compat/NEXT.md
+++ b/docs/compat/NEXT.md
@@ -149,12 +149,12 @@ These matrix families are "not assessed", and the sample apps hardly use them: `
## What is still not assessed, in the order to do it (status 2026-11-18)
-Counted from the family table of `MATRIX.md` (main `eabab6d1` plus the Gestures `scroll` cell of this change): **10 cells say "not assessed"**: the whole Pickers and menus row (7), and the `scroll` cell of Layout and containers, of Gestures and of WebView content. (At `20187dcd` there were 24: the `scroll` cells of five families (#863), the Layout row (#847) and the Gestures row (#851) have been assessed on named devices since; the Gestures `scroll` cell, which said "n/a", now says "not assessed" like the Layout one, because a scroll or a drag over a gesture widget applies and is not tested.) The list below adds what the matrix says about iOS, other libraries and other devices. Cost is the size of one pull request in this folder's style (a screen, a suite, negative variants, matrix and docs); nothing here is a result.
+Counted from the family table of `MATRIX.md` with the Pickers and menus change: **5 cells say "not assessed"**: the `type` and `scroll` cells of Pickers and menus, and the `scroll` cell of Layout and containers, of Gestures and of WebView content. (On `main` at `15fba797` there were 10: the whole Pickers and menus row counted 7.) (At `20187dcd` there were 24: the `scroll` cells of five families (#863), the Layout row (#847) and the Gestures row (#851) have been assessed on named devices since; the Gestures `scroll` cell, which said "n/a", now says "not assessed" like the Layout one, because a scroll or a drag over a gesture widget applies and is not tested.) The list below adds what the matrix says about iOS, other libraries and other devices. Cost is the size of one pull request in this folder's style (a screen, a suite, negative variants, matrix and docs); nothing here is a result.
| # | What is open | Cells | Cost | State |
|---|---|---|---|---|
| 1 | **The `scroll` cell.** Done for Text and display, Buttons, Text input, Selection controls and Navigation: one widget below the fold on each screen (#863, Android, both Flutter versions; iOS not run). Open: **Layout and containers** (its screen has no widget below the fold yet: the same one widget and one test), **Gestures** (a scroll or a drag over a gesture widget, `Dismissible` and `Draggable`: not tested) and **WebView content** (item 11: no step scrolls a page in a WebView). Pickers and menus is item 2; Lists was done earlier (item 4). | 3 | one small pull request each for Layout and Gestures; item 11 for WebView | five of the ten families whose `scroll` cell is not "n/a" are done by this item (Text and display, Buttons, Text input, Selection controls, Navigation); Lists was done earlier; Pickers is item 2; Layout, Gestures and WebView are open |
-| 2 | **Pickers and menus, the whole row**: `DropdownButton`, `PopupMenuButton`, `DatePickerDialog`, `CupertinoPicker`. The source of this file cannot rank them (0 to 2 packages each), but they are routes and overlays, where the Dialogs family found that a closing overlay is in the tree until it finishes, that a covered tap lands on the overlay, and that a text selector takes the first widget that holds the text. | 7 | one pull request per two widgets | open; some local work exists that is not in the repository, so nothing about it is claimed here |
+| 2 | **Pickers and menus**: `DropdownButton` and `PopupMenuButton` are assessed (the `pickers` screen, 17 tests and 12 negatives: Flutter 3.44.8 and 3.50.0 on an Android emulator; finding: the items of a closed `DropdownButton` were seen on 3.50.0 with the agent at `15fba797`, issue #900, fixed by #901; device runs used the fixed agent). Open: `DatePickerDialog`, `CupertinoPicker`, `DropdownMenu`, `MenuAnchor`, and the row's `type` and `scroll` cells. They are routes and overlays, where the Dialogs family found that a closing overlay is in the tree until it finishes, that a covered tap lands on the overlay, and that a text selector takes the first widget that holds the text. | 2 | one pull request per two widgets | half done (`DropdownButton`, `PopupMenuButton`) |
| 3 | **Layout and containers**: `Stack`, `Opacity`, `Visibility` (what a person cannot see or tap). | 1 (`scroll`, item 1) | one pull request | assessed (#847) |
| 4 | **Gestures**: `GestureDetector`, `InkWell`, a text inside a gesture widget. | 0 | one pull request | assessed (#851) |
| 5 | **Navigation, the rest of the row**: `NavigationBar`, `TabBar`, `Drawer`, and a route that is not opaque (the Dialogs family covers dialogs and sheets). | in the row's `find` and `tap` cells (partly) | one pull request | open |
@@ -165,7 +165,7 @@ Counted from the family table of `MATRIX.md` (main `eabab6d1` plus the Gestures
| 10 | **Other surfaces and devices**: other API levels, a physical device, other text scales, TalkBack and other accessibility services, screen sizes below about 400x800 dp (the Cover page of the Dialogs screen needs a portrait screen at least that big). | all | a measurement plan, not a screen | open |
| 11 | **WebView scroll: a step that does not exist yet.** The `scroll` cell of WebView content is "not assessed" because no step scrolls a page inside a WebView. This needs a small design note first (which verb, for example `scroll down in webview`; and how the agent scrolls: a script run through the WebView controller such as `window.scrollBy`, or the platform view's own scrolling), then a runner and agent step, then a fixture page that is taller than the screen and a test. Do not start before item 2. | 1 | a design note, then a runner and agent change | open, depends on a decision |
-Why this order: items 1 and 7 are the cheapest and close the most cells; item 2 is the largest family that has nothing, and it is made of the cases where results so far were wrong or surprising; 3 and 4 are done; 6 turns Android-only results into results for both platforms; 9 is last because the stopgap already makes the wrong answers refusals, and a test can say more only once the real fix is built. The restart failure of `before each test` (issue #823) is not a widget cell, but it decides how many runs of any suite are complete, so a suite's result should be read with it in mind.
+Why this order: items 1 and 7 are the cheapest and close the most cells; item 2 is half done and what it found was surprising (issue #900, now fixed), so the rest of the row is likely to be too; 3 and 4 are done; 6 turns Android-only results into results for both platforms; 9 is last because the stopgap already makes the wrong answers refusals, and a test can say more only once the real fix is built. The restart failure of `before each test` (issue #823) is not a widget cell, but it decides how many runs of any suite are complete, so a suite's result should be read with it in mind.
## Partly assessed: follow-ups from the matrix
diff --git a/native-test-apps/flutter/lib/widget_families.dart b/native-test-apps/flutter/lib/widget_families.dart
index c335801c..ff937855 100644
--- a/native-test-apps/flutter/lib/widget_families.dart
+++ b/native-test-apps/flutter/lib/widget_families.dart
@@ -22,6 +22,7 @@ const widgetFamilies = [
'progress',
'layout',
'gestures',
+ 'pickers',
];
/// The screen of [family], or null when there is none.
@@ -36,6 +37,7 @@ Widget? widgetFamilyScreen(String family) => switch (family) {
'progress' => const ProgressFamilyScreen(),
'layout' => const LayoutFamilyScreen(),
'gestures' => const GesturesFamilyScreen(),
+ 'pickers' => const PickersFamilyScreen(),
_ => null,
};
@@ -1553,3 +1555,123 @@ class _GesturesFamilyScreenState extends State {
);
}
}
+
+/// A DropdownButton (open, an item, a disabled one) and two PopupMenuButtons (one with a text child, one with the default icon and a
+/// tooltip). Both open their items in a route over the screen. State texts: `Color: none|Red|Green|Blue`, `Action: none|Cut|Copy|Paste`,
+/// `Icon menu: none|Rename|Delete`.
+class PickersFamilyScreen extends StatefulWidget {
+ const PickersFamilyScreen({super.key});
+
+ @override
+ State createState() => _PickersFamilyScreenState();
+}
+
+class _PickersFamilyScreenState extends State {
+ String? _color;
+ int _itemTaps = 0;
+ String _action = 'none';
+ String _iconMenu = 'none';
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(title: const Text('Pickers')),
+ body: ListView(
+ padding: const EdgeInsets.all(12),
+ children: [
+ _s(
+ 'wf_dropdown',
+ (k) => DropdownButton(
+ key: k,
+ hint: const Text('Pick a color'),
+ value: _color,
+ items: [
+ for (final c in const ['Red', 'Green', 'Blue'])
+ // onTap counts every tap on a menu item, also on the one that is already chosen (onChanged does not run for it).
+ DropdownMenuItem(
+ value: c,
+ onTap: () => setState(() => _itemTaps++),
+ child: Text(c),
+ ),
+ ],
+ onChanged: (v) => setState(() => _color = v),
+ ),
+ ),
+ _state('wf_dropdown_state', 'Color: ${_color ?? 'none'}'),
+ _state('wf_item_taps_state', 'Item taps: $_itemTaps'),
+ // Disabled (onChanged: null), the id on the control and the id on a wrapper only (issue #860 is about a wrapper hiding the control).
+ _s(
+ 'wf_dropdown_off',
+ (k) => DropdownButton(
+ key: k,
+ value: 'Locked',
+ items: const [
+ DropdownMenuItem(value: 'Locked', child: Text('Locked')),
+ DropdownMenuItem(value: 'Spare', child: Text('Spare')),
+ ],
+ onChanged: null,
+ ),
+ ),
+ Semantics(
+ identifier: 'wf_dropdown_off_w',
+ child: KeyedSubtree(
+ key: const ValueKey('wf_dropdown_off_w'),
+ child: DropdownButton(
+ value: 'Pinned',
+ items: const [
+ DropdownMenuItem(value: 'Pinned', child: Text('Pinned')),
+ DropdownMenuItem(value: 'Extra', child: Text('Extra')),
+ ],
+ onChanged: null,
+ ),
+ ),
+ ),
+ _s(
+ 'wf_popup',
+ (k) => PopupMenuButton(
+ key: k,
+ onSelected: (v) => setState(() => _action = v),
+ itemBuilder: (context) => const [
+ PopupMenuItem(value: 'Cut', child: Text('Cut')),
+ PopupMenuItem(value: 'Copy', child: Text('Copy')),
+ PopupMenuItem(value: 'Paste', child: Text('Paste')),
+ ],
+ child: const Padding(
+ padding: EdgeInsets.all(12),
+ child: Text('Actions'),
+ ),
+ ),
+ ),
+ _state('wf_popup_state', 'Action: $_action'),
+ _s(
+ 'wf_popup_off',
+ (k) => PopupMenuButton(
+ key: k,
+ enabled: false,
+ itemBuilder: (context) => const [
+ PopupMenuItem(value: 'Never', child: Text('Never shown')),
+ ],
+ child: const Padding(
+ padding: EdgeInsets.all(12),
+ child: Text('Disabled menu'),
+ ),
+ ),
+ ),
+ _s(
+ 'wf_popup_icon',
+ (k) => PopupMenuButton(
+ key: k,
+ tooltip: 'More options',
+ onSelected: (v) => setState(() => _iconMenu = v),
+ itemBuilder: (context) => const [
+ PopupMenuItem(value: 'Rename', child: Text('Rename')),
+ PopupMenuItem(value: 'Delete', child: Text('Delete')),
+ ],
+ ),
+ ),
+ _state('wf_icon_menu_state', 'Icon menu: $_iconMenu'),
+ ],
+ ),
+ );
+ }
+}
diff --git a/native-test-apps/flutter/probe-tests/negative/pickers.probe.expect-fail b/native-test-apps/flutter/probe-tests/negative/pickers.probe.expect-fail
new file mode 100644
index 00000000..eec18ee3
--- /dev/null
+++ b/native-test-apps/flutter/probe-tests/negative/pickers.probe.expect-fail
@@ -0,0 +1,77 @@
+# The negative variants of probe-tests/widgets/pickers.probe: every test below asserts something WRONG, or crosses what the agent can do, and every one must FAIL.
+# They show that the positive suite can fail, and why. This file does not end in .probe, so `probe test` never picks it up in a directory run. To run it:
+#
+# cp probe-tests/negative/pickers.probe.expect-fail /tmp/pickers-negative.probe
+# probe test /tmp/pickers-negative.probe --device -y # (the pickers build, the same probe.yaml as for pickers.probe)
+#
+# Expected: 0 passed, 12 failed, each with the message in its comment. A test that passes is a finding: either the agent changed or the positive suite no longer proves what it says.
+# Each test must fail at its own step, with the message in its comment. A failure at the `wait until` of `before each test` (a timeout
+# waiting for the screen's last element) is NOT the expected failure: the screen never showed, and the run proves nothing.
+# N8 to N10 are KNOWN GAPS: the step is right and fails today (issue #864); when the agent is fixed such a test passes, and then it moves to pickers.probe.
+
+before each test
+ restart the app
+ # Right after a restart the agent can answer while the screen is still being built (issue #793): wait for the screen's last element with an id.
+ wait until #wf_icon_menu_state appears
+
+# Expected: see "Blue": Expected to see "text("Blue")" but it was not found (the items of a closed dropdown are not seen)
+test "N1 the items of a closed dropdown are not seen"
+ see "Blue"
+
+# Expected: see "Color: Blue": Expected to see "text("Color: Blue")" but it was not found (Green was chosen)
+test "N2 the value is the item that was chosen"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ see "Color: Blue"
+
+# Expected: see "Cut": Expected to see "text("Cut")" but it was not found (the items of a closed popup menu are not in the tree)
+test "N3 the items of a closed popup menu are not seen"
+ see "Cut"
+
+# Expected: see "Never shown": Expected to see "text("Never shown")" but it was not found (a tap on a disabled popup menu opens nothing)
+test "N4 a disabled popup menu does not open"
+ tap #wf_popup_off
+ wait for animations to end
+ see "Never shown"
+
+# Expected: see "Item taps: 2": Expected to see "text("Item taps: 2")" but it was not found (one item was tapped once)
+test "N5 the item counter counts the taps on items"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ see "Item taps: 2"
+
+# Expected: see "Cut": Expected to see "text("Cut")" but it was not found (the tap on "Actions" under the open dropdown landed on the barrier and opened no popup menu)
+test "N6 a button under an open dropdown is not pressed by a tap"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Actions"
+ wait for animations to end
+ see "Cut"
+
+# Expected: tap #wf_nowhere: Widget not found: #wf_nowhere
+test "N7 an id that is not on the screen"
+ tap #wf_nowhere
+
+# Expected: see #wf_dropdown_off is disabled: "#wf_dropdown_off" is enabled (KNOWN GAP, issue #864: this step is RIGHT and fails today, because the agent does not read a DropdownButton; when it is fixed this test passes, which is a finding: move it to pickers.probe)
+test "N8 KNOWN GAP: a disabled dropdown is read as enabled, id on the control"
+ see #wf_dropdown_off is disabled
+
+# Expected: see #wf_dropdown_off_w is disabled: "#wf_dropdown_off_w" is enabled (KNOWN GAP, issue #864: this step is RIGHT and fails today; the id is on a wrapper only)
+test "N9 KNOWN GAP: a disabled dropdown is read as enabled, id on a wrapper"
+ see #wf_dropdown_off_w is disabled
+
+# Expected: see #wf_popup_off is disabled: "#wf_popup_off" is enabled (KNOWN GAP, issue #864: this step is RIGHT and fails today, because the agent does not read a PopupMenuButton)
+test "N10 KNOWN GAP: a disabled popup menu is read as enabled"
+ see #wf_popup_off is disabled
+
+# Expected: see #wf_dropdown contains "Pick a color": "#wf_dropdown" contains "", not "Pick a color" (by design: `#id contains` reads the text of the matched widget itself, and a DropdownButton is not a Text: read it by its text, `see "Pick a color"`)
+test "N11 the text of a dropdown is not read through its id"
+ see #wf_dropdown contains "Pick a color"
+
+# Expected: see #wf_popup contains "Actions": "#wf_popup" contains "", not "Actions" (by design, as N11)
+test "N12 the text of a popup menu button is not read through its id"
+ see #wf_popup contains "Actions"
diff --git a/native-test-apps/flutter/probe-tests/widgets/pickers.probe b/native-test-apps/flutter/probe-tests/widgets/pickers.probe
new file mode 100644
index 00000000..c6e3cf69
--- /dev/null
+++ b/native-test-apps/flutter/probe-tests/widgets/pickers.probe
@@ -0,0 +1,187 @@
+# Needs the pickers build: flutter build apk --debug --dart-define=PROBE_AGENT=true --dart-define=PROBE_FIXTURE_WIDGETS=pickers (see the README).
+# What each test shows is also in docs/compat/MATRIX.md: a matrix cell is set only from a test that ran.
+#
+# A DropdownButton keeps its items in an IndexedStack. Before the fix of issue #900 (#901) the agent saw the children of an IndexedStack that are not shown with
+# Flutter 3.50.0 (and not with 3.44.8), so a closed dropdown's items were seen on one version and not on the other; the first test below asserts that they are
+# not, on both. Most tests prove what they need through behaviour that is the same everywhere: a state text that changes, a counter, a tap that reaches or
+# does not reach another widget. See native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart. The items of a PopupMenuButton exist only while
+# its menu is open.
+#
+# A menu is a route: `wait for animations to end` waits for it to open or to close.
+# A state text such as "Action: Copy" contains the name of an item, and a text selector matches a part of a text: after a choice, wait for the animations, not
+# for an item to disappear.
+
+before each test
+ restart the app
+ # Right after a restart the agent can answer while the screen is still being built (issue #793): wait for the screen's last element with an id.
+ wait until #wf_icon_menu_state appears
+
+test "a dropdown shows its hint, opens by its id, and an item is chosen"
+ see "Pick a color"
+ see "Color: none"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Red"
+ see "Color: Red"
+
+test "a dropdown opens by a tap on its hint text, and an item is chosen"
+ tap "Pick a color"
+ wait for animations to end
+ tap "Green"
+ see "Color: Green"
+
+test "the items of a closed dropdown are not seen, are seen while it is open, and are not seen after a choice"
+ don't see "Blue"
+ don't see "Spare"
+ tap #wf_dropdown
+ wait for animations to end
+ see "Blue"
+ tap "Red"
+ wait for animations to end
+ see "Color: Red"
+ don't see "Blue"
+
+test "choosing an item sets the value and the button shows it"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ see "Color: Green"
+ see "Item taps: 1"
+
+test "a dropdown is reopened and another item is chosen"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Blue"
+ wait for animations to end
+ see "Color: Blue"
+ see "Item taps: 2"
+
+test "with an item chosen, a tap on its name in the open menu hits the menu item, not the button under it"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ see "Item taps: 1"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Green"
+ wait for animations to end
+ see "Item taps: 2"
+ see "Color: Green"
+
+test "go back closes an open dropdown without choosing, and the page answers again"
+ tap #wf_dropdown
+ wait for animations to end
+ go back
+ wait for animations to end
+ see "Color: none"
+ see "Item taps: 0"
+ tap "Actions"
+ wait for animations to end
+ tap "Cut"
+ see "Action: Cut"
+
+test "a tap on a button under an open dropdown lands on the barrier: the menu closes and the button is not pressed"
+ tap #wf_dropdown
+ wait for animations to end
+ tap "Actions"
+ wait for animations to end
+ see "Action: none"
+ see "Color: none"
+ tap "Actions"
+ wait for animations to end
+ tap "Cut"
+ see "Action: Cut"
+
+test "a tap on a disabled dropdown opens nothing, with the id on the control and on a wrapper: the page still answers"
+ tap #wf_dropdown_off
+ wait for animations to end
+ don't see "Spare"
+ tap #wf_dropdown_off_w
+ wait for animations to end
+ don't see "Extra"
+ tap "Actions"
+ wait for animations to end
+ tap "Copy"
+ see "Action: Copy"
+
+test "a popup menu opens by its child text, and an item is chosen"
+ tap "Actions"
+ wait for animations to end
+ see "Copy"
+ see "Paste"
+ tap "Copy"
+ wait for animations to end
+ see "Action: Copy"
+
+test "a popup menu opens by its id"
+ tap #wf_popup
+ wait for animations to end
+ tap "Paste"
+ wait for animations to end
+ see "Action: Paste"
+
+test "a popup menu with the default icon opens by its tooltip and by its id"
+ tap "More options"
+ wait for animations to end
+ tap "Delete"
+ wait for animations to end
+ see "Icon menu: Delete"
+ tap #wf_popup_icon
+ wait for animations to end
+ tap "Rename"
+ wait for animations to end
+ see "Icon menu: Rename"
+
+test "go back closes an open popup menu without choosing"
+ tap "Actions"
+ wait for animations to end
+ go back
+ wait for animations to end
+ see "Action: none"
+ tap "Actions"
+ wait for animations to end
+ tap "Paste"
+ see "Action: Paste"
+
+test "a tap outside an open popup menu closes it without choosing"
+ tap "Actions"
+ wait for animations to end
+ tap "Action: none"
+ wait for animations to end
+ see "Action: none"
+ tap "Actions"
+ wait for animations to end
+ tap "Cut"
+ see "Action: Cut"
+
+test "the page under an open popup menu is still seen"
+ tap "Actions"
+ wait for animations to end
+ see "Icon menu: none"
+ see "Color: none"
+
+test "the same popup item is chosen twice"
+ tap "Actions"
+ wait for animations to end
+ tap "Copy"
+ wait for animations to end
+ tap "Actions"
+ wait for animations to end
+ tap "Copy"
+ wait for animations to end
+ see "Action: Copy"
+
+test "a tap on a disabled popup menu opens nothing: the page still answers"
+ tap #wf_popup_off
+ wait for animations to end
+ see "Disabled menu"
+ tap "Actions"
+ wait for animations to end
+ tap "Cut"
+ see "Action: Cut"
diff --git a/native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart b/native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart
new file mode 100644
index 00000000..f921889c
--- /dev/null
+++ b/native-test-apps/flutter/test/pickers_indexed_stack_regression_test.dart
@@ -0,0 +1,95 @@
+import 'dart:convert';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_probe_agent/src/executor.dart';
+import 'package:flutter_probe_agent/src/protocol.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:probe_flutter_fixture/widget_families.dart';
+
+// What the agent does with the children of an IndexedStack that are not the shown one, and with the items of a closed DropdownButton (which keeps its items in
+// an IndexedStack): it does not see them, with Flutter 3.44.8 and with Flutter 3.50.0. Before the fix of issue #900 it saw them with Flutter 3.50.0: the agent
+// ignores a widget behind an `Offstage` or a `Visibility(visible: false)`, 3.44.8 wraps the children that are not shown in a `Visibility(visible: false)`, and
+// 3.50.0 does not (only `RenderIndexedStack` hides them there). The agent's own test of the rule is probe_agent/test/indexed_stack_hidden_test.dart (added with
+// the fix, #901); this one runs the same check on the fixture's pickers screen and on a plain IndexedStack, through the same `see` the device suite uses.
+//
+// Run it BY HAND, once with each Flutter, with `flutter test test/pickers_indexed_stack_regression_test.dart` in this folder; it needs no device, and CI does not run it (CI
+// runs the tests of probe_agent only).
+
+Future _passes(
+ WidgetTester tester,
+ String text, {
+ required bool negated,
+}) async {
+ String? raw;
+ final executor = ProbeExecutor((s) => raw = s);
+ var done = false;
+ final call = executor
+ .dispatch(
+ ProbeRequest(
+ jsonrpc: '2.0',
+ id: 1,
+ method: ProbeMethods.see,
+ params: {
+ 'selector': {'kind': 'text', 'text': text},
+ 'negated': negated,
+ },
+ ),
+ )
+ .whenComplete(() => done = true);
+ for (var i = 0; i < 100 && !done; i++) {
+ await tester.pump(const Duration(milliseconds: 50));
+ }
+ await call;
+ return !(jsonDecode(raw!) as Map).containsKey('error');
+}
+
+void main() {
+ testWidgets(
+ 'the agent does not see the children of an IndexedStack that are not shown',
+ (tester) async {
+ await tester.pumpWidget(
+ const MaterialApp(
+ home: Scaffold(
+ body: IndexedStack(
+ index: 0,
+ children: [Text('Shown page'), Text('Hidden page')],
+ ),
+ ),
+ ),
+ );
+ await tester.pumpAndSettle();
+ expect(await _passes(tester, 'Shown page', negated: false), isTrue);
+ expect(
+ await _passes(tester, 'Hidden page', negated: false),
+ isFalse,
+ reason: 'see "Hidden page"',
+ );
+ expect(
+ await _passes(tester, 'Hidden page', negated: true),
+ isTrue,
+ reason: 'don\'t see "Hidden page"',
+ );
+ },
+ );
+
+ testWidgets(
+ 'the agent does not see the items of a closed DropdownButton on the pickers screen',
+ (tester) async {
+ await tester.pumpWidget(const MaterialApp(home: PickersFamilyScreen()));
+ await tester.pumpAndSettle();
+ expect(await _passes(tester, 'Pick a color', negated: false), isTrue);
+ expect(
+ await _passes(tester, 'Blue', negated: false),
+ isFalse,
+ reason: 'see "Blue", an item of the closed dropdown',
+ );
+ expect(
+ await _passes(tester, 'Blue', negated: true),
+ isTrue,
+ reason: 'don\'t see "Blue"',
+ );
+ // The items of a PopupMenuButton exist only while its menu is open.
+ expect(await _passes(tester, 'Cut', negated: false), isFalse);
+ },
+ );
+}