Skip to content

Commit 8ec274f

Browse files
committed
docs: improve comment explaining pressAction limitation for accordion
1 parent c0cc88c commit 8ec274f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/remix/test/components/accordion/accordion_widget_test.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,14 @@ void main() {
471471
expectedStates: {WidgetState.focused},
472472
);
473473

474-
// Note: pressAction doesn't work with accordion's nested structure.
475-
// Press behavior is tested through the expansion behavior tests instead.
474+
// Note: pressAction cannot be used here because the interactive part of
475+
// RemixAccordion (its tappable header) is implemented inside nested
476+
// internal widgets rather than on the RemixAccordion widget itself.
477+
// Our generic pressAction helper assumes that the widget type under
478+
// test exposes a directly-tappable element, so it never finds a valid
479+
// target for RemixAccordion's nested structure. As a result, press
480+
// behavior for accordions is covered in the dedicated expansion behavior
481+
// tests instead of via pressAction in this WidgetStateController group.
476482
});
477483
});
478484
}

0 commit comments

Comments
 (0)