I have list of widgtes showing with some translate animation. Before using Patrol I have used ensureVisible() which works:
void main() {
testWidgets('some test'), (tester) async {
await app.main();
await tester.pumpAndSettle();
final cards = find.byType(Card);
expect(cards, findsNWidgets(4));
final firstCard = cards.evaluate().first.widget;
final card = find.byWidget(firstCard);
await tester.ensureVisible(card);
await tester.pumpAndSettle();
await tester.tap(card);
}
}
but in Patrol docs says it will handle the visibility issue itself but it is giving me WaitUntilVisibleTimeoutException when setting visible or settle duration
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
patrolTest('some test', ($) async {
await app.main();
await $.pumpAndSettle();
final cards = $(Card);
expect(cards, findsNWidgets(4));
final firstCard = cards.evaluate().first.widget;
final card = $(firstCard);
await card.tap(settleTimeout: 5.seconds, visibleTimeout: 5.seconds);
});
}
I have list of widgtes showing with some translate animation. Before using Patrol I have used
ensureVisible()which works:but in Patrol docs says it will handle the visibility issue itself but it is giving me
WaitUntilVisibleTimeoutExceptionwhen setting visible or settle duration