test(mobile): preserve section options accessibility with view sheet

Keep main's labeled-button and semantic tap assertions; verify they open the approved sheet rather than the replaced popover.

Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
Taylor Ho
2026-10-19 16:37:02 -07:00
parent f30ce38ca2
commit fd8e0dd28d

View File

@@ -427,16 +427,14 @@ void main() {
);
node.owner!.performAction(node.id, ui.SemanticsAction.tap);
await tester.pumpAndSettle();
expect(
find.byKey(
ValueKey(
label == 'Channels options'
? 'sort-popover-Channels'
: 'section-popover-section-1',
),
),
findsOneWidget,
// The approved section-view sheet replaces the original popover;
// the same accessible button must still open the section controls.
final title = tester.widget<Text>(
find.byKey(const ValueKey('buzz-sheet-title')),
);
expect(title.data, label == 'Channels options' ? 'Channels' : 'Design');
expect(find.text('Sort'), findsOneWidget);
expect(find.text('Show'), findsOneWidget);
} finally {
semantics.dispose();
}