Skip to content

Commit c81c4d3

Browse files
committed
fix: push button tests
1 parent cca6af9 commit c81c4d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/buttons/push_button_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ void main() {
9696
expect(
9797
description,
9898
[
99-
'buttonSize: small',
99+
'controlSize: regular',
100100
'color: null',
101101
'disabledColor: null',
102102
'pressedOpacity: 0.4',
103103
'alignment: Alignment.center',
104104
'semanticLabel: null',
105105
'borderRadius: BorderRadius.circular(4.0)',
106106
'disabled',
107-
'isSecondary: null',
107+
'secondary: null',
108108
],
109109
);
110110
});

test/theme/push_button_theme_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/foundation.dart';
2-
import 'package:flutter/widgets.dart';
32
import 'package:flutter_test/flutter_test.dart';
43
import 'package:macos_ui/macos_ui.dart';
4+
import 'package:macos_ui/src/library.dart';
55

66
void main() {
77
group('PushButton theme tests', () {
@@ -78,8 +78,8 @@ void main() {
7878

7979
final theme = PushButtonTheme.of(capturedContext);
8080
expect(theme.color, const Color(0xff007aff));
81-
expect(theme.disabledColor, const Color(0xfff4f5f5));
82-
expect(theme.secondaryColor, const Color(0xffdadadf));
81+
expect(theme.disabledColor, const Color.fromRGBO(244, 245, 245, 1.0));
82+
expect(theme.secondaryColor, MacosColors.white);
8383
});
8484
});
8585
}

0 commit comments

Comments
 (0)