Skip to content

Commit

Permalink
Change code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jBorkowska committed Nov 25, 2024
1 parent 7417cc5 commit d38d6b6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ patrolWidgetTest(
'throws exception when no widget to tap on is found',
config: const PatrolTesterConfig(printLogs: true),
(tester) async {
await tester.pumpWidget(const MaterialApp());
await expectLater(
() => tester.tap(find.text('some text')),
throwsA(isA<WaitUntilVisibleTimeoutException>()),
);
// test body
// ...
},
);
```
Expand All @@ -116,9 +112,8 @@ testWidgets(
tester: widgetTester,
config: PatrolTesterConfig(printLogs: true),
);
// test body
// ...
},
);
```
```

0 comments on commit d38d6b6

Please sign in to comment.