socialincome-san / public

Fighting global poverty with the help of everyday people and your coding skills. Public repository of the NGO and global initiative Social Income.
https://socialincome.org
Other
90 stars 26 forks source link

[Mobile App Bug]: Golden tests are broken since Flutter 3.13 #543

Open novas1r1 opened 1 year ago

novas1r1 commented 1 year ago

Is there an existing issue for this?

Describe the bug

alchemist-0a8b6531ce99374ccafdf55385259f03cdf5c47a/lib/src/golden_test_adapter.dart:53:38: Error: A value of type 'void Function(String, Future<void>
Function(WidgetTester), {int? retry, bool semanticsEnabled, bool? skip, dynamic tags, Timeout? timeout, TestVariant<Object?
> variant})' can't be assigned to a variable of type
'FutureOr<void> Function(String, Future<void> Function(WidgetTester), {Duration? initialTimeout, bool semanticsEnabled, bool? skip, dynamic tags, Timeout? timeout, TestVariant<Object?>
variant})'.
 - 'Future' is from 'dart:async'.
 - 'WidgetTester' is from 'package:flutter_test/src/widget_tester.dart' ('../../../flutter/packages/flutter_test/lib/src/widget_tester.dart').
 - 'Timeout' is from 'package:test_api/src/backend/configuration/timeout.dart' ('../../../../.pub-cache/hosted/pub.dev/test_api-0.6.0/lib/src/backend/configuration/timeout.dart').
 - 'TestVariant' is from 'package:flutter_test/src/widget_tester.dart' ('../../../flutter/packages/flutter_test/lib/src/widget_tester.dart').
 - 'Object' is from 'dart:core'.
 - 'Duration' is from 'dart:core'.
TestWidgetsFn defaultTestWidgetsFn = testWidgets;

Steps To Reproduce

  1. flutter pub get
  2. flutter test
  3. flutter test --update-goldens

Expected Behavior

No response

Screenshots?

No response

Desktop Environment (please complete the following information)

- OS:
- Browser:
- Version:

Smartphone Type (please complete the following information)

- Device:
- OS:
- Browser:
- Version:

Additional context

No response

Code of Conduct

MDikkii commented 1 year ago

Seems to be an issue on alchemist side https://github.com/Betterment/alchemist/issues/94