Skip to content

Commit

Permalink
tests: changes label find nothing to finds one as non-expanded fab no…
Browse files Browse the repository at this point in the history
…w has a label
  • Loading branch information
DE7924 committed Sep 25, 2024
1 parent 23dc425 commit 582c14a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/components/fabs/fab_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void main() {
expect(diagnostics.finder('focusNode'), 'null');
});

testWidgets('Expanded changes when label is null', (WidgetTester tester) async {
testWidgets('Label is correct', (WidgetTester tester) async {
final scrollController = ScrollController();
StateSetter? setState;
bool expanded = false;
Expand All @@ -209,7 +209,7 @@ void main() {

final labelFinder = find.text('Label');

expect(labelFinder, findsNothing);
expect(labelFinder, findsOne);

setState?.call(() => expanded = true);

Expand Down

0 comments on commit 582c14a

Please sign in to comment.