feat(flutter): 新增剧场筛选页

This commit is contained in:
Zhou Weidong committed 2026-10-20 15:39:46 +08:00
1 parent 85ba2a4fec
commit 850f8e7c8c
12 files changed
+1012 -52

No files matched your search

+7 -12
View File
@@ -51,25 +51,20 @@ void main() {
expect(tester.takeException(), isNull);
});
testWidgets('should_open_filter_sheet_and_apply_category', (tester) async {
testWidgets('should_open_filter_page_from_theater_toolbar', (tester) async {
await _pumpTheater(tester, categoryRepository: _GridCategoryRepository());
await tester.tap(find.byKey(const Key('theater-toolbar-filter')));
await tester.pumpAndSettle();
expect(find.byKey(const Key('theater-filter-sheet')), findsOneWidget);
await tester.tap(find.byKey(const Key('theater-filter-option-7')));
expect(find.byKey(const Key('filter-page')), findsOneWidget);
expect(find.byKey(const Key('filter-groups')), findsOneWidget);
await tester.tap(find.byKey(const Key('filter-back')));
await tester.pumpAndSettle();
expect(find.byKey(const Key('theater-filter-sheet')), findsNothing);
expect(
find.byKey(const Key('home-drama-card-city-lights-demo')),
findsOneWidget,
);
expect(
find.byKey(const Key('home-drama-card-the-signal-demo')),
findsNothing,
);
expect(find.byKey(const Key('filter-page')), findsNothing);
expect(find.byKey(const Key('discover-search')), findsOneWidget);
});
testWidgets('should_filter_grid_when_category_chip_is_tapped', (