File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'dart:io';
2
2
3
3
import 'package:apidash/providers/providers.dart' ;
4
4
import 'package:apidash/screens/dashboard.dart' ;
5
+ import 'package:apidash/screens/home_page/collection_pane.dart' ;
5
6
import 'package:apidash/screens/home_page/home_page.dart' ;
6
7
import 'package:apidash/screens/intro_page.dart' ;
7
8
import 'package:apidash/screens/settings_page.dart' ;
@@ -211,4 +212,23 @@ void main() {
211
212
expect (isDisposed, true );
212
213
});
213
214
});
215
+
216
+ group ("Testing selectedIdEditStateProvider" , () {
217
+ testWidgets (
218
+ 'selectedIdEditStateProvider should have an initial value of null' ,
219
+ (tester) async {
220
+ await tester.pumpWidget (
221
+ const ProviderScope (
222
+ child: MaterialApp (
223
+ home: CollectionPane (),
224
+ ),
225
+ ),
226
+ );
227
+
228
+ // Verify that the initial value is null
229
+ final collectionPane = tester.element (find.byType (CollectionPane ));
230
+ final container = ProviderScope .containerOf (collectionPane);
231
+ expect (container.read (selectedIdEditStateProvider), null );
232
+ });
233
+ });
214
234
}
You can’t perform that action at this time.
0 commit comments