mirror of
https://github.com/foss42/apidash.git
synced 2025-05-26 02:36:31 +08:00
20 lines
470 B
Dart
20 lines
470 B
Dart
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);
|
|
});
|
|
}
|