mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
wip: widget tests
This commit is contained in:
18
test/widgets/card_request_details.dart
Normal file
18
test/widgets/card_request_details.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:apidash/widgets/widgets.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Testing Request Details Card', (tester) async {
|
||||
await tester.pumpWidget(
|
||||
const MaterialApp(
|
||||
title: 'Request Details Card',
|
||||
home: Scaffold(
|
||||
body: RequestDetailsCard(child: SizedBox(height: 10, width: 10))),
|
||||
),
|
||||
);
|
||||
|
||||
expect(find.byType(Card), findsOneWidget);
|
||||
expect(find.byType(SizedBox), findsOneWidget);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user