mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Use pumpAndSettle after dragUntilVisible to avoid flakes in context_menu tests (#1588)
This commit is contained in:
committed by
GitHub
parent
1a383e9361
commit
4ee2002665
@@ -14,6 +14,7 @@ void main() {
|
||||
find.byType(ListView),
|
||||
const Offset(0.0, -100.0),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(AnywherePage.title));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ void main() {
|
||||
find.byType(ListView),
|
||||
const Offset(0.0, -250.0),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(CascadingMenuPage.title));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ void main() {
|
||||
find.byType(ListView),
|
||||
const Offset(0.0, -100.0),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(CustomButtonsPage.title));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ void main() {
|
||||
find.byType(ListView),
|
||||
const Offset(0.0, -200.0),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(CustomMenuPage.title));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user