Skip to content

Commit

Permalink
Fix failing golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Jun 6, 2024
1 parent 8528946 commit 9bc2607
Show file tree
Hide file tree
Showing 33 changed files with 8 additions and 6 deletions.
Binary file modified forui/test/golden/text_field/default-zinc-dark-focused-no-text.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/text_field/default-zinc-dark-focused-text.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.
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/text_field/default-zinc-light-focused-no-text.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.
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/text_field/email-zinc-dark-focused-no-text.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/text_field/email-zinc-dark-focused-text.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/text_field/email-zinc-dark-unfocused-text.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/text_field/email-zinc-light-focused-text.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.
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.
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.
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.
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.
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/text_field/password-zinc-dark-focused-no-text.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/text_field/password-zinc-dark-focused-text.png
Binary file modified forui/test/golden/text_field/password-zinc-dark-unfocused-text.png
Binary file modified forui/test/golden/text_field/password-zinc-light-focused-text.png
Binary file modified forui/test/golden/text_field/password-zinc-light-unfocused-text.png
14 changes: 8 additions & 6 deletions forui/test/src/widgets/text_field_golden_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:forui/forui.dart';
import '../test_scaffold.dart';

const _text =
const _longText =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure '
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non '
Expand All @@ -18,8 +18,8 @@ void main() {
group('FTextField', () {
for (final (theme, theme_, _) in TestScaffold.themes) {
for (final (focused, focused_) in [('focused', true), ('unfocused', false)]) {
for (final (text, text_) in [('text', _text), ('no-text', null)]) {
testWidgets('default - $theme - $focused', (tester) async {
for (final (text, text_) in [('text', 'short text'), ('no-text', null)]) {
testWidgets('default - $theme - $focused - $text', (tester) async {
final controller = text_ == null ? null : TextEditingController(text: text_);
await tester.pumpWidget(
MaterialApp(
Expand All @@ -46,7 +46,7 @@ void main() {
);
});

testWidgets('email - $theme - $focused', (tester) async {
testWidgets('email - $theme - $focused - $text', (tester) async {
final controller = text_ == null ? null : TextEditingController(text: text_);
await tester.pumpWidget(
MaterialApp(
Expand All @@ -73,7 +73,7 @@ void main() {
);
});

testWidgets('password - $theme - $focused', (tester) async {
testWidgets('password - $theme - $focused - $text', (tester) async {
final controller = text_ == null ? null : TextEditingController(text: text_);
await tester.pumpWidget(
MaterialApp(
Expand All @@ -99,8 +99,10 @@ void main() {
matchesGoldenFile('text_field/password-$theme-$focused-$text.png'),
);
});
}

testWidgets('multiline - $theme - $focused', (tester) async {
for (final (text, text_) in [('text', _longText), ('no-text', null)]) {
testWidgets('multiline - $theme - $focused - $text', (tester) async {
final controller = text_ == null ? null : TextEditingController(text: text_);
await tester.pumpWidget(
MaterialApp(
Expand Down

0 comments on commit 9bc2607

Please sign in to comment.