From cb50d4a804f6a85fd8c2feec3c5f33c15091e390 Mon Sep 17 00:00:00 2001 From: "auto-submit[bot]" <98614782+auto-submit[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:46:16 +0000 Subject: [PATCH] Reverts "[web] Re-enable test now that source of flakiness is fixed" (#140515) Reverts flutter/flutter#140462 Initiated by: cbracken This change reverts the following previous change: Original Description: The test was flaky before due to overflowing GPU memory during the test. The memory leak was fixed here https://github.com/flutter/engine/pull/49214 Fixes https://github.com/flutter/flutter/issues/137669 As a side effect of the fix, this test also runs much faster, from about 3 minutes on my Macbook down to about 25 seconds. --- packages/flutter/test/cupertino/text_field_test.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/flutter/test/cupertino/text_field_test.dart b/packages/flutter/test/cupertino/text_field_test.dart index 9b604f6548..a1ee778a70 100644 --- a/packages/flutter/test/cupertino/text_field_test.dart +++ b/packages/flutter/test/cupertino/text_field_test.dart @@ -8390,10 +8390,13 @@ void main() { final EditableText editableText = tester.firstWidget(find.byType(EditableText)); expect(editableText.clipBehavior, Clip.none); - await expectLater( - find.byKey(const ValueKey(1)), - matchesGoldenFile('overflow_clipbehavior_none.cupertino.0.png'), - ); + // TODO(harryterkelsen): see https://github.com/flutter/flutter/issues/137669 + if (!kIsWeb || !isCanvasKit) { + await expectLater( + find.byKey(const ValueKey(1)), + matchesGoldenFile('overflow_clipbehavior_none.cupertino.0.png'), + ); + } }); testWidgets('can shift + tap to select with a keyboard (Apple platforms)', (WidgetTester tester) async {