diff --git a/packages/flutter/test/cupertino/date_picker_test.dart b/packages/flutter/test/cupertino/date_picker_test.dart index fb1724a23e..7a751bf171 100644 --- a/packages/flutter/test/cupertino/date_picker_test.dart +++ b/packages/flutter/test/cupertino/date_picker_test.dart @@ -12,6 +12,7 @@ import 'dart:math' as math; import 'dart:ui'; import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart' show isCanvasKit; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -19,7 +20,7 @@ import 'package:flutter_test/flutter_test.dart'; import '../impeller_test_helpers.dart'; // TODO(yjbanov): on the web text rendered with perspective produces flaky goldens: https://github.com/flutter/flutter/issues/110785 -const bool skipPerspectiveTextGoldens = isBrowser; +final bool skipPerspectiveTextGoldens = isBrowser && !isCanvasKit; // A number of the hit tests below say "warnIfMissed: false". This is because // the way the CupertinoPicker works, the hits don't actually reach the labels,