Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaijoe committed Sep 3, 2024
1 parent 9dc9dee commit 4761a29
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions forui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

* Add label and description to `FCheckbox`.

* Add label and description to `FSwitch`.

* Add `FPortal`.

* Add `FPopover`.
Expand Down
7 changes: 3 additions & 4 deletions forui/example/lib/sandbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ class _SandboxState extends State<Sandbox> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const FSwitch(
label: Text('Accept terms and conditions'),
description: Text('You agree to our terms and conditions.'),
semanticLabel: 'Accept terms and conditions',
enabled: true,
label: Text('Airplane Mode'),
description: Text('Disable all wireless connections.'),
semanticLabel: 'Airplane Mode',
),
FTooltip(
longPressExitDuration: const Duration(seconds: 5000),
Expand Down
Binary file modified forui/test/golden/switch/zinc-dark-checked-disabled-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-dark-checked-focused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-dark-checked-unfocused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-dark-unchecked-disabled-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-dark-unchecked-focused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-light-checked-disabled-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-light-checked-focused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-light-checked-unfocused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/switch/zinc-light-unchecked-focused-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions forui/test/src/widgets/switch_golden_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ void main() {
data: theme,
child: Center(
child: FSwitch(
label: const Text('Airplane Mode'),
description: const Text('Disable all wireless connections.'),
semanticLabel: 'Airplane Mode',
initialValue: value,
),
),
Expand All @@ -36,6 +39,9 @@ void main() {
data: theme,
child: Center(
child: FSwitch(
label: const Text('Airplane Mode'),
description: const Text('Disable all wireless connections.'),
semanticLabel: 'Airplane Mode',
initialValue: value,
autofocus: true,
),
Expand All @@ -55,6 +61,9 @@ void main() {
data: theme,
child: Center(
child: FSwitch(
label: const Text('Airplane Mode'),
description: const Text('Disable all wireless connections.'),
semanticLabel: 'Airplane Mode',
enabled: false,
initialValue: value,
autofocus: true,
Expand Down

0 comments on commit 4761a29

Please sign in to comment.