From 582c14abe264488c39040e8520f54139c7f05ade Mon Sep 17 00:00:00 2001 From: Daniel Eshkeri Date: Wed, 25 Sep 2024 14:58:38 +0100 Subject: [PATCH] tests: changes label find nothing to finds one as non-expanded fab now has a label --- test/src/components/fabs/fab_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/components/fabs/fab_test.dart b/test/src/components/fabs/fab_test.dart index cb90a4b3..f82fd5ed 100644 --- a/test/src/components/fabs/fab_test.dart +++ b/test/src/components/fabs/fab_test.dart @@ -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; @@ -209,7 +209,7 @@ void main() { final labelFinder = find.text('Label'); - expect(labelFinder, findsNothing); + expect(labelFinder, findsOne); setState?.call(() => expanded = true);