diff --git a/test/providers/ui_providers_test.dart b/test/providers/ui_providers_test.dart index dde4983f..c7a2f5a0 100644 --- a/test/providers/ui_providers_test.dart +++ b/test/providers/ui_providers_test.dart @@ -330,4 +330,23 @@ void main() { expect(isDisposed, true); }); }); + + group("Testing sentRequestIdStateProvider", () { + testWidgets( + 'sentRequestIdStateProvider should have an initial value of null', + (tester) async { + await tester.pumpWidget( + const ProviderScope( + child: MaterialApp( + home: CollectionPane(), + ), + ), + ); + + // Verify that the initial value is null + final collectionPane = tester.element(find.byType(CollectionPane)); + final container = ProviderScope.containerOf(collectionPane); + expect(container.read(sentRequestIdStateProvider), null); + }); + }); }