mirror of
https://github.com/foss42/apidash.git
synced 2025-06-02 07:46:10 +08:00
Create window_caption_test.dart
This commit is contained in:
19
test/widgets/window_caption_test.dart
Normal file
19
test/widgets/window_caption_test.dart
Normal file
@ -0,0 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:apidash/widgets/window_caption.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Testing for Window caption', (tester) async {
|
||||
await tester.pumpWidget(
|
||||
const MaterialApp(
|
||||
title: 'Window caption',
|
||||
home: Scaffold(
|
||||
body: WindowCaption(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final wd = find.byType(GestureDetector);
|
||||
expect(wd, findsAny);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user