From fd8e0dd28d276892e64317ae8eaa2b009a8e9b31 Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Mon, 19 Oct 2026 16:37:02 -0700 Subject: [PATCH] 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 Signed-off-by: Taylor Ho --- .../features/channels/channels_page_test.dart | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mobile/test/features/channels/channels_page_test.dart b/mobile/test/features/channels/channels_page_test.dart index ed7835c0ab..716fb1a2f0 100644 --- a/mobile/test/features/channels/channels_page_test.dart +++ b/mobile/test/features/channels/channels_page_test.dart @@ -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( + 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(); }