mirror of
https://github.com/block/buzz.git
synced 2026-11-09 02:41:57 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user