Skip to content

Commit

Permalink
Update widget_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mounir Bouaiche committed Jun 11, 2023
1 parent e786c43 commit 46600c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void main() {
data: currentData,
child: ScreenUtilInit(
designSize: designSize,
builder: (context, child) => MaterialApp(
child: MaterialApp(
home: Material(
child: TextButton(
key: _key,
Expand All @@ -68,6 +68,9 @@ void main() {
// Tests with initial screen size
testSize(initialSize);

// Wait for FutureBuilder to be resolved
await tester.pumpAndSettle();

// Click On button to simulate changing screen size
await tap();
// Tests with bigger screen size
Expand Down

0 comments on commit 46600c0

Please sign in to comment.