Skip to content

Commit

Permalink
Fix explorer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Nov 20, 2024
1 parent f5ce863 commit e2d3479
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions test/view/opening_explorer/opening_explorer_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void main() {
);
await tester.pumpWidget(app);

// wait for opening explorer data to load
await tester.pump(const Duration(milliseconds: 50));
// wait for opening explorer data to load (taking debounce delay into account)
await tester.pump(const Duration(milliseconds: 350));

final moves = [
'e4',
Expand All @@ -102,8 +102,6 @@ void main() {
// find.byType(OpeningExplorerGameTile),
// findsNWidgets(2),
// );

await tester.pump(const Duration(milliseconds: 50));
},
variant: kPlatformVariant,
);
Expand Down Expand Up @@ -133,8 +131,8 @@ void main() {
);
await tester.pumpWidget(app);

// wait for opening explorer data to load
await tester.pump(const Duration(milliseconds: 50));
// wait for opening explorer data to load (taking debounce delay into account)
await tester.pump(const Duration(milliseconds: 350));

final moves = [
'd4',
Expand All @@ -157,8 +155,6 @@ void main() {
// find.byType(OpeningExplorerGameTile),
// findsOneWidget,
// );

await tester.pump(const Duration(milliseconds: 50));
},
variant: kPlatformVariant,
);
Expand Down Expand Up @@ -189,8 +185,8 @@ void main() {
);
await tester.pumpWidget(app);

// wait for opening explorer data to load
await tester.pump(const Duration(milliseconds: 50));
// wait for opening explorer data to load (taking debounce delay into account)
await tester.pump(const Duration(milliseconds: 350));

final moves = [
'c4',
Expand All @@ -213,8 +209,6 @@ void main() {
// find.byType(OpeningExplorerGameTile),
// findsOneWidget,
// );

await tester.pump(const Duration(milliseconds: 50));
},
variant: kPlatformVariant,
);
Expand Down

0 comments on commit e2d3479

Please sign in to comment.