From e2d34793af38b7216ed8e7520380c12d1905709a Mon Sep 17 00:00:00 2001 From: Vincent Velociter Date: Wed, 20 Nov 2024 17:51:55 +0100 Subject: [PATCH] Fix explorer tests --- .../opening_explorer_screen_test.dart | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/view/opening_explorer/opening_explorer_screen_test.dart b/test/view/opening_explorer/opening_explorer_screen_test.dart index a442d6f50e..32b7e88a4f 100644 --- a/test/view/opening_explorer/opening_explorer_screen_test.dart +++ b/test/view/opening_explorer/opening_explorer_screen_test.dart @@ -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', @@ -102,8 +102,6 @@ void main() { // find.byType(OpeningExplorerGameTile), // findsNWidgets(2), // ); - - await tester.pump(const Duration(milliseconds: 50)); }, variant: kPlatformVariant, ); @@ -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', @@ -157,8 +155,6 @@ void main() { // find.byType(OpeningExplorerGameTile), // findsOneWidget, // ); - - await tester.pump(const Duration(milliseconds: 50)); }, variant: kPlatformVariant, ); @@ -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', @@ -213,8 +209,6 @@ void main() { // find.byType(OpeningExplorerGameTile), // findsOneWidget, // ); - - await tester.pump(const Duration(milliseconds: 50)); }, variant: kPlatformVariant, );