From db0a08aad52c7fbfdf5c04aab2c2b6b422b8593a Mon Sep 17 00:00:00 2001 From: Brandon Trautmann Date: Wed, 11 Sep 2024 13:04:05 -0400 Subject: [PATCH] chore: bump flutter/dart min sdk constraints (#118) * chore: bump flutter/dart min sdk constraints * chore: bump workflow flutter version * upload failures * run upload during failure events * for now, disable use of material 3 in goldens * Update test/src/golden_test_scenario_test.dart Co-authored-by: Jeroen Meijer (Jay) * fix utilities test * update workflow flutter version * Re-run CI * chore: Updating Goldens * Re-run CI --------- Co-authored-by: Jeroen Meijer (Jay) --- .github/workflows/main.yaml | 12 ++++- .github/workflows/post_merge.yaml | 2 +- .github/workflows/update_goldens.yaml | 2 +- lib/src/alchemist_config.dart | 51 +++++++----------- lib/src/golden_test_adapter.dart | 4 +- lib/src/golden_test_group.dart | 4 +- lib/src/golden_test_scenario.dart | 18 +++---- lib/src/golden_test_scenario_constraints.dart | 6 +-- lib/src/utilities.dart | 3 +- pubspec.yaml | 4 +- test/flutter_test_config.dart | 1 + .../composited_transform_smoke_test.dart | 4 +- test/smoke_tests/dropdown_smoke_test.dart | 2 +- .../ci/composited_transform_smoke_test.png | Bin 578 -> 580 bytes .../goldens/ci/dropdown_smoke_test.png | Bin 1202 -> 1209 bytes .../interactions_smoke_test_long_pressed.png | Bin 1247 -> 1257 bytes .../ci/interactions_smoke_test_pressed.png | Bin 1941 -> 1979 bytes .../ci/interactions_smoke_test_regular.png | Bin 1247 -> 1257 bytes .../ci/render_object_text_smoke_test.png | Bin 1670 -> 1672 bytes .../goldens/ci/timer_button_smoke_test.png | Bin 746 -> 742 bytes .../smoke_tests/render_object_smoke_test.dart | 2 +- test/smoke_tests/timer_button_smoke_test.dart | 2 +- test/src/blocked_text_image_reference.png | Bin 462 -> 467 bytes test/src/golden_test_scenario_test.dart | 6 +-- test/src/utilities_test.dart | 2 +- 25 files changed, 59 insertions(+), 66 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 53548a1..3c512bc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,7 +11,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: '3.13.0' + flutter-version: '3.16.0' channel: 'stable' cache: true @@ -27,6 +27,14 @@ jobs: - name: Run tests run: flutter test --no-pub --coverage --test-randomize-ordering-seed=random + - name: Upload failures + if: failure() + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 + with: + name: "golden_failures" + path: | + **/failures/**/*.png + - uses: codecov/codecov-action@v2 with: files: coverage/lcov.info @@ -39,7 +47,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: '3.13.0' + flutter-version: '3.16.0' channel: 'stable' cache: true diff --git a/.github/workflows/post_merge.yaml b/.github/workflows/post_merge.yaml index 6ebba3a..4906aa7 100644 --- a/.github/workflows/post_merge.yaml +++ b/.github/workflows/post_merge.yaml @@ -14,7 +14,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: 3.13.0 + flutter-version: '3.16.0' cache: true - name: Install Dependencies diff --git a/.github/workflows/update_goldens.yaml b/.github/workflows/update_goldens.yaml index c143a41..5404364 100644 --- a/.github/workflows/update_goldens.yaml +++ b/.github/workflows/update_goldens.yaml @@ -43,7 +43,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: '3.13.0' + flutter-version: '3.16.0' channel: 'stable' cache: true diff --git a/lib/src/alchemist_config.dart b/lib/src/alchemist_config.dart index 7fa4a9e..0d66894 100644 --- a/lib/src/alchemist_config.dart +++ b/lib/src/alchemist_config.dart @@ -249,12 +249,12 @@ class AlchemistConfig extends Equatable { /// The [enabled] flag determines whether or not these golden tests are /// enabled. If set to `false`, these tests will not be generated or compared. /// Otherwise the tests will function as normal. -/// {@endtemplate goldens_config_enabled} +/// {@endtemplate} /// /// {@template goldens_config_file_path_resolver} /// The [filePathResolver] can be used to customize the name and of the golden /// file. -/// {@endtemplate goldens_config_file_path_resolver} +/// {@endtemplate} /// /// {@template goldens_config_theme} /// If a [theme] is provided, it will be assigned to the [MaterialApp] created @@ -266,14 +266,14 @@ class AlchemistConfig extends Equatable { /// **Note:** when [obscureText] is true, tests are always rendered /// in the "Ahem" font family to ensure consistent results across platforms. /// In other words, the font family of the [theme] will be ignored. -/// {@endtemplate goldens_config_theme} +/// {@endtemplate} /// /// {@template goldens_config_render_shadows} /// The [renderShadows] flag determines whether or not shadows are rendered in /// golden tests. /// If set to `false`, all shadows are replaced with solid color blocks. -/// {@endtemplate goldens_config_render_shadows} -/// {@endtemplate goldens_config} +/// {@endtemplate} +/// {@endtemplate} abstract class GoldensConfig extends Equatable { /// {@macro goldens_config} const GoldensConfig({ @@ -379,24 +379,17 @@ abstract class GoldensConfig extends Equatable { /// By default, [renderShadows] is set to true so platform golden images are a /// more accurate representation of the tested widget. /// -/// {@endtemplate platform_goldens_config} +/// {@endtemplate} class PlatformGoldensConfig extends GoldensConfig { /// {@macro platform_goldens_config} const PlatformGoldensConfig({ Set? platforms, - bool enabled = true, - bool obscureText = false, - bool renderShadows = true, - FilePathResolver? filePathResolver, - ThemeData? theme, - }) : _platforms = platforms, - super( - enabled: enabled, - obscureText: obscureText, - renderShadows: renderShadows, - filePathResolver: filePathResolver, - theme: theme, - ); + super.enabled = true, + super.obscureText = false, + super.renderShadows = true, + super.filePathResolver, + super.theme, + }) : _platforms = platforms; @override String get environmentName => HostPlatform.current().operatingSystem; @@ -474,22 +467,16 @@ class PlatformGoldensConfig extends GoldensConfig { /// {@macro goldens_config_render_shadows} /// By default, [renderShadows] is set to false to make CI tests more stable. /// -/// {@endtemplate ci_goldens_config} +/// {@endtemplate} class CiGoldensConfig extends GoldensConfig { /// {@macro ci_goldens_config} const CiGoldensConfig({ - bool enabled = true, - bool obscureText = true, - bool renderShadows = false, - FilePathResolver? filePathResolver, - ThemeData? theme, - }) : super( - enabled: enabled, - obscureText: obscureText, - renderShadows: renderShadows, - filePathResolver: filePathResolver, - theme: theme, - ); + super.enabled = true, + super.obscureText = true, + super.renderShadows = false, + super.filePathResolver, + super.theme, + }); @override String get environmentName => 'CI'; diff --git a/lib/src/golden_test_adapter.dart b/lib/src/golden_test_adapter.dart index 6465e3e..43c1b1a 100644 --- a/lib/src/golden_test_adapter.dart +++ b/lib/src/golden_test_adapter.dart @@ -317,12 +317,12 @@ class FlutterGoldenTestAdapter extends GoldenTestAdapter { class FlutterGoldenTestWrapper extends StatelessWidget { /// {@macro _flutter_golden_test_wrapper} const FlutterGoldenTestWrapper({ - Key? key, + super.key, this.globalConfigTheme, this.variantConfigTheme, this.obscureFont = false, required this.child, - }) : super(key: key); + }); /// The theme provided by the global [AlchemistConfig], if any. /// diff --git a/lib/src/golden_test_group.dart b/lib/src/golden_test_group.dart index 6d73db6..25c6281 100644 --- a/lib/src/golden_test_group.dart +++ b/lib/src/golden_test_group.dart @@ -44,12 +44,12 @@ typedef ColumnWidthBuilder = TableColumnWidth? Function(int columns); class GoldenTestGroup extends StatelessWidget { /// {@macro golden_test_group} const GoldenTestGroup({ - Key? key, + super.key, this.columns, this.columnWidthBuilder, this.scenarioConstraints, required this.children, - }) : super(key: key); + }); /// The number of columns in the grid. /// diff --git a/lib/src/golden_test_scenario.dart b/lib/src/golden_test_scenario.dart index e23a513..0b8af8a 100644 --- a/lib/src/golden_test_scenario.dart +++ b/lib/src/golden_test_scenario.dart @@ -23,37 +23,35 @@ WidgetBuilder _build(Widget build) => (context) => build; class GoldenTestScenario extends StatelessWidget { /// {@macro golden_test_scenario} GoldenTestScenario({ - Key? key, + super.key, required this.name, required Widget child, this.constraints, - }) : builder = _build(child), - super(key: key); + }) : builder = _build(child); /// Creates a [GoldenTestScenario] with a [builder] function that allows /// access to the [BuildContext] of the widget. const GoldenTestScenario.builder({ - Key? key, + super.key, required this.name, required this.builder, this.constraints, - }) : super(key: key); + }); /// Creates a [GoldenTestScenario] with a custom [textScaleFactor] that /// applies a default scale of text to its child. GoldenTestScenario.withTextScaleFactor({ - Key? key, + super.key, required this.name, required double textScaleFactor, required Widget child, this.constraints, - }) : builder = _build( + }) : builder = _build( _CustomTextScaleFactor( textScaleFactor: textScaleFactor, child: child, ), - ), - super(key: key); + ); /// The name of the scenario. /// @@ -121,7 +119,7 @@ class _CustomTextScaleFactor extends StatelessWidget { Widget build(BuildContext context) { return MediaQuery( data: MediaQuery.of(context).copyWith( - textScaleFactor: textScaleFactor, + textScaler: TextScaler.linear(textScaleFactor), ), child: child, ); diff --git a/lib/src/golden_test_scenario_constraints.dart b/lib/src/golden_test_scenario_constraints.dart index 384c946..f8c4a3c 100644 --- a/lib/src/golden_test_scenario_constraints.dart +++ b/lib/src/golden_test_scenario_constraints.dart @@ -8,10 +8,10 @@ import 'package:flutter/material.dart'; class GoldenTestScenarioConstraints extends InheritedWidget { /// {@macro golden_test_scenario_constraints} const GoldenTestScenarioConstraints({ - Key? key, - required Widget child, + super.key, + required super.child, required this.constraints, - }) : super(key: key, child: child); + }); /// The constraints to apply to the scenario's child. final BoxConstraints? constraints; diff --git a/lib/src/utilities.dart b/lib/src/utilities.dart index 324e763..f81eb3d 100644 --- a/lib/src/utilities.dart +++ b/lib/src/utilities.dart @@ -80,7 +80,8 @@ extension GoldenTestThemeDataExtensions on ThemeData { static const obscuredTextFontFamily = 'Ahem'; /// Strips all text packages from this theme's [ThemeData.textTheme] for use - /// in golden tests using [GoldenTestTextStyleExtensions.stripAlchemistPackage]. + /// in golden tests using + /// [GoldenTestTextStyleExtensions.stripAlchemistPackage]. /// /// Only used internally and should not be used by consumers. @protected diff --git a/pubspec.yaml b/pubspec.yaml index bfdc0ec..393a0db 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,8 +6,8 @@ homepage: https://github.com/Betterment/alchemist repository: https://github.com/Betterment/alchemist environment: - sdk: ">=3.0.1 <4.0.0" - flutter: ">=3.13.0" + sdk: ">=3.2.0 <4.0.0" + flutter: ">=3.16.0" dependencies: equatable: ^2.0.3 diff --git a/test/flutter_test_config.dart b/test/flutter_test_config.dart index 8297de2..5768c75 100644 --- a/test/flutter_test_config.dart +++ b/test/flutter_test_config.dart @@ -11,6 +11,7 @@ Future testExecutable(FutureOr Function() testMain) async { return AlchemistConfig.runWithConfig( config: AlchemistConfig( theme: ThemeData( + useMaterial3: false, textTheme: const TextTheme().apply(fontFamily: 'Roboto'), ), platformGoldensConfig: diff --git a/test/smoke_tests/composited_transform_smoke_test.dart b/test/smoke_tests/composited_transform_smoke_test.dart index ff6e66c..788da9b 100644 --- a/test/smoke_tests/composited_transform_smoke_test.dart +++ b/test/smoke_tests/composited_transform_smoke_test.dart @@ -3,9 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; class _SmokeTest extends StatelessWidget { - _SmokeTest({Key? key}) - : _link = LayerLink(), - super(key: key); + _SmokeTest({super.key}) : _link = LayerLink(); final LayerLink _link; diff --git a/test/smoke_tests/dropdown_smoke_test.dart b/test/smoke_tests/dropdown_smoke_test.dart index 1bb3316..fee6a90 100644 --- a/test/smoke_tests/dropdown_smoke_test.dart +++ b/test/smoke_tests/dropdown_smoke_test.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; class TestDropdownButton extends StatelessWidget { - const TestDropdownButton({Key? key}) : super(key: key); + const TestDropdownButton({super.key}); @override Widget build(BuildContext context) => Center( diff --git a/test/smoke_tests/goldens/ci/composited_transform_smoke_test.png b/test/smoke_tests/goldens/ci/composited_transform_smoke_test.png index dc5f63df89812045665501417eec36b0542eb0c8..7f6459c0816d3c04747942ed2c6c06f0ff6921ed 100644 GIT binary patch delta 526 zcmV+p0`dLA1jGc8L4WQ^L_t(&f$iB%OB+EPfbnN`cdWe#Qf#0IzJQP(TRhrBp{Mp# z`W^fhJ^2OvB+1G4)`B8b6JJVg8c3^`_MpcU1hdJG2UAQmX3g%5P2B%;%r4p8-%chw ztXkbZGf39+{`U#o*96v40_!M&b(Fw5N?;u&u#O7ic363vzkiGK7`fgTt9`e}!X_yK znl~&v0+o%QiFMcr2o3ad)fqtr%hwr)>f1cnkY^26P`k4NE2!5?4J)X3mnz)Stn`>Xvj1HfJ*X~wr-%( zG|c;o$L(8l9Df=<)FWmdD#r9By#f|G_RC6%E_Xt~qV7grt4A~p)J_eJ@Zw%6AfG{0 zNHOL8o1A~QQNxaLUpqB4LqpzIJjx&{IQ%a;`tpr~@`016-;Zzn+dOL)CT1} zDy4nCYacK0dGY*d+QW=oRz_^DjXQ=R*xI4G^Oe@Prhlb<3ZF}C?Dc<*aUZib738$y zW$Q1sUq5M%Ym9gKWKj6D&HC;STZbBntj@8sxk;Aaz2bqsKEo6AevKq&|?Il*-genB1vk@Cc85>asSUTyJUBNJDKdT z>eKFDgJeDLf1ki(O<)}*u#OT~M+vN>1lCak>!=`ZhmY?H4}WnUBiD!ZV$bcdut}-| z(LKwKKxN}+VjZ>)ga*2~>WrX*73sGV7X71X<>h85KArGgdI`%4Tf zsJ%-BE2!}e3@fPpHP8Z~UsPFnSz3Ahiz+Lx0k6}efuq_!Ye%gCRhcFLP)Xj>Rt%g( zhB;p`-Mlpyp?_hsQs?=kVobN_74WiczpRw#a&rn^=}y#*N}Z~K(zT%)Htv-I3K>L& z6jR>q$C$OLAg>im zwJS>JXG9Yk$a8G3(U?uwSCB;%L%NMou&JOC$NqZSVsx0qXgDb0_!M&b(Fw5>IQfDpo12QgpvRN O002ovP6b4+LSTYaCkZqF diff --git a/test/smoke_tests/goldens/ci/dropdown_smoke_test.png b/test/smoke_tests/goldens/ci/dropdown_smoke_test.png index 0307788b8562f1908ba34892f2aca1512e07f33e..010f875f0829c8700d667578d499ab8af760ad74 100644 GIT binary patch literal 1209 zcmeAS@N?(olHy`uVBq!ia0vp^CxG}D2OE%l@`}R(NHG=%xjQkeJ16rJ$YCjV@(kes zf*OvL4j?z#)5S5QV$R#Uj@cpM5)BU*Pd+kZh6Io9meqP(n?R#n5wzZE9O&fmW)nH=1qceRB8d z(<{n3J-%_LZ?ZAXcUBN!VM@H#_^0~c_bbYGD#WGtwQc5mQ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r%DDKj>x$wAIG%_MqMy+5X^y@#Cha~?W& z_tGhi#`}F)7K>}ahmPfpJh`uz1KpZ<9p_lWB_>i@uB|lK)~%_# zZFxqfLSE0f_~Ek{-#E5 zNvWzDf93OXnUAh62#U97-z!`rqIqx0TI$OE-JnvYHwm=gsqf;hjGnpH5|mUb?oj z=~Y@U-&gI6wYP2GS1I27?l5V~vX^WAM=Ocki&Xo)dyerrg=6k)s-D{3i|y98Zm3BA z`SC6H^B&`ln=h~2aj2VkK3h@eUS!(ur6>M_y^Qd&&WmS)*OF>7w0V9hPn-Hy_HyGs z`|!zk8O7_N0Rjvr!5??eEqH(KV0?@sa=1AjC}0cRvd?AG6iJj$r;sf$^!_4XFq~D{ zZF=+Ks+$`bQ!i=$-|n)&*XZSxwBu|hK*50{S{1&W#&uoHI(-w{L&>_Lc>UkIO+H#3Oy>M=Jn@lHZue2q)z*7{OkT&NEXp|B WeXeJzlkZaoAnSm5jI))Z+D2}LgR zzHa*j{I%1k7XTbj=nx=u2oO312ps~14go@kfb-~q`Qlx`>z3;>-EYgMm%)>YlYjv= z9T?7x+t=+K>i`a9M~48RL%{IpJ{kA?AAEwPsTh%<7?U6Y6q6kR2pfR$%s8{g;OE)V zAwcL5Fg&`?#y!K=8~ss9#gje(BnrdZYol8+!1uGGlMn$UlN|vUlN|vU8wec&gbo1@ XPmdI|!^-rR00000NkvXXu0mjfI~-vT delta 205 zcmV;;05bp61I`1GK~s21L_t(|obB8@4#F@HK*4~(_dl;G-~vdlAfGo=r*QMMPO-kt zIo}&_Y4^Pk0Q{cNAwcL5Aan>2Is^zE0)!3$kJSfbjDMViiLx9jBV0m>P9-e^1 zTfOaQqLJ|=2`snQR$DQ^@tKjZ9Fv{_Ad`>*E|ZV}5f*#^JaZO|^u0cR00000NkvXX Hu0mjfJg8TM diff --git a/test/src/golden_test_scenario_test.dart b/test/src/golden_test_scenario_test.dart index f681308..39392c6 100644 --- a/test/src/golden_test_scenario_test.dart +++ b/test/src/golden_test_scenario_test.dart @@ -151,9 +151,9 @@ void main() { expect( mediaQuery, isA().having( - (m) => m.textScaleFactor, - 'textScaleFactor', - 2.0, + (m) => m.textScaler, + 'textScaler', + const TextScaler.linear(2), ), ); }, diff --git a/test/src/utilities_test.dart b/test/src/utilities_test.dart index 8198b6c..7101f68 100644 --- a/test/src/utilities_test.dart +++ b/test/src/utilities_test.dart @@ -50,7 +50,7 @@ void main() { printLogs, [ ''' -No widgets found that match finder: zero widgets with text "does not exist" (ignoring offstage widgets). +No widgets found that match finder: Found 0 widgets with text "does not exist": []. No gestures will be performed. If this is intentional, consider not calling this method