Skip to content

Commit

Permalink
Fix broadcast list screen iOS test
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Jan 17, 2025
1 parent 8ad8cca commit 6c565fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/view/broadcast/broadcast_list_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class _BodyState extends ConsumerState<_Body> {
slivers: [
for (final section in sections)
SliverMainAxisGroup(
key: ValueKey(section),
key: ValueKey(section.$1),
slivers: [
if (Theme.of(context).platform == TargetPlatform.iOS)
CupertinoSliverNavigationBar(
Expand Down
3 changes: 1 addition & 2 deletions test/view/broadcast/broadcast_list_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ void main() {
});
});

// TODO: Fix test for iOS
testWidgets('Scroll broadcast tournament screen', variant: kPlatformVariant, (tester) async {
await mockNetworkImagesFor(() async {
final app = await makeTestProviderScopeApp(
Expand All @@ -90,7 +89,7 @@ void main() {
// Wait for broadcast tournaments to load
await tester.pump(const Duration(milliseconds: 100));

await tester.scrollUntilVisible(find.text('Completed'), 100.0);
await tester.scrollUntilVisible(find.byKey(const ValueKey('past')), 100.0);
});
});
});
Expand Down

0 comments on commit 6c565fd

Please sign in to comment.