Skip to content

Commit

Permalink
fix(authenticator): Fix failing test on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Nys committed Mar 23, 2022
1 parent dada164 commit db3c12a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/amplify_authenticator/test/ui/tab_view_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ void main() {

group('AuthenticatorTabView', () {
setUp(() {
binding.platformDispatcher.clearPlatformBrightnessTestValue();
// TODO: Remove when Flutter SDK >= 2.11
// ignore: deprecated_member_use
binding.window.clearPlatformBrightnessTestValue();
binding.window.physicalSizeTestValue = const Size(2400, 2400);
});

Expand All @@ -141,8 +143,9 @@ void main() {
group('$configName config', () {
group('Light Mode', () {
setUp(() {
binding.platformDispatcher.platformBrightnessTestValue =
Brightness.light;
// TODO: Remove when Flutter SDK >= 2.11
// ignore: deprecated_member_use
binding.window.platformBrightnessTestValue = Brightness.light;
});

// Tests the default Material theme.
Expand Down Expand Up @@ -192,8 +195,9 @@ void main() {

group('Dark Mode', () {
setUp(() {
binding.platformDispatcher.platformBrightnessTestValue =
Brightness.dark;
// TODO: Remove when Flutter SDK >= 2.11
// ignore: deprecated_member_use
binding.window.platformBrightnessTestValue = Brightness.dark;
});

// Tests the default Material theme (dark mode).
Expand Down

0 comments on commit db3c12a

Please sign in to comment.