mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: fix flaky flutter integration tests (#4870)
This commit is contained in:
parent
f404882343
commit
b4c8011881
@ -82,7 +82,7 @@ void main() {
|
|||||||
// Hover over today's calendar cell
|
// Hover over today's calendar cell
|
||||||
await tester.hoverOnTodayCalendarCell(
|
await tester.hoverOnTodayCalendarCell(
|
||||||
// Tap on create new event button
|
// Tap on create new event button
|
||||||
onHover: () async => tester.tapAddCalendarEventButton(),
|
onHover: tester.tapAddCalendarEventButton,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Make sure that the event editor popup is shown
|
// Make sure that the event editor popup is shown
|
||||||
|
@ -346,11 +346,14 @@ void main() {
|
|||||||
await tester.tapNewPropertyButton();
|
await tester.tapNewPropertyButton();
|
||||||
await tester.renameField(FieldType.LastEditedTime.i18n);
|
await tester.renameField(FieldType.LastEditedTime.i18n);
|
||||||
await tester.tapSwitchFieldTypeButton();
|
await tester.tapSwitchFieldTypeButton();
|
||||||
|
|
||||||
|
// get time just before modifying
|
||||||
|
final modified = DateTime.now();
|
||||||
|
|
||||||
|
// create a last modified field (cont'd)
|
||||||
await tester.selectFieldType(FieldType.LastEditedTime);
|
await tester.selectFieldType(FieldType.LastEditedTime);
|
||||||
await tester.dismissFieldEditor();
|
await tester.dismissFieldEditor();
|
||||||
|
|
||||||
final modified = DateTime.now();
|
|
||||||
|
|
||||||
tester.assertCellContent(
|
tester.assertCellContent(
|
||||||
rowIndex: 0,
|
rowIndex: 0,
|
||||||
fieldType: FieldType.CreatedTime,
|
fieldType: FieldType.CreatedTime,
|
||||||
|
@ -162,9 +162,7 @@ extension CommonOperations on WidgetTester {
|
|||||||
}) async {
|
}) async {
|
||||||
try {
|
try {
|
||||||
final gesture = await createGesture(kind: PointerDeviceKind.mouse);
|
final gesture = await createGesture(kind: PointerDeviceKind.mouse);
|
||||||
await gesture.addPointer(location: Offset.zero);
|
await gesture.addPointer(location: offset ?? getCenter(finder));
|
||||||
await pump();
|
|
||||||
await gesture.moveTo(offset ?? getCenter(finder));
|
|
||||||
await pumpAndSettle();
|
await pumpAndSettle();
|
||||||
await onHover?.call();
|
await onHover?.call();
|
||||||
await gesture.removePointer();
|
await gesture.removePointer();
|
||||||
|
Loading…
Reference in New Issue
Block a user