From 6b56654890b062942453736180504d5b8e9379be Mon Sep 17 00:00:00 2001 From: Yegor Date: Mon, 12 Sep 2022 10:30:40 -0700 Subject: [PATCH] [web] skip more perspective text tests (#111402) --- .../test/cupertino/date_picker_test.dart | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/flutter/test/cupertino/date_picker_test.dart b/packages/flutter/test/cupertino/date_picker_test.dart index 2df4f4941a..3353f6507a 100644 --- a/packages/flutter/test/cupertino/date_picker_test.dart +++ b/packages/flutter/test/cupertino/date_picker_test.dart @@ -1314,19 +1314,23 @@ void main() { ), ); - await expectLater( - find.byType(CupertinoTimerPicker), - matchesGoldenFile('timer_picker_test.datetime.initial.png'), - ); + if (!skipPerspectiveTextGoldens) { + await expectLater( + find.byType(CupertinoTimerPicker), + matchesGoldenFile('timer_picker_test.datetime.initial.png'), + ); + } // Slightly drag the minute component to make the current minute off-center. await tester.drag(find.text('59'), Offset(0, _kRowOffset.dy / 2), warnIfMissed: false); // see top of file await tester.pump(); - await expectLater( - find.byType(CupertinoTimerPicker), - matchesGoldenFile('timer_picker_test.datetime.drag.png'), - ); + if (!skipPerspectiveTextGoldens) { + await expectLater( + find.byType(CupertinoTimerPicker), + matchesGoldenFile('timer_picker_test.datetime.drag.png'), + ); + } }); testWidgets('TimerPicker only changes hour label after scrolling stops', (WidgetTester tester) async {