15 lines
540 B
Dart
15 lines
540 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:location_accuracy_app/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('دریافت موقعیت بدون دکمه و بهصورت خودکار شروع میشود', (
|
|
tester,
|
|
) async {
|
|
await tester.pumpWidget(const LocationApp());
|
|
|
|
expect(find.text('موقعیت مکانی من'), findsOneWidget);
|
|
expect(find.byType(FilledButton), findsNothing);
|
|
expect(find.textContaining('زمان'), findsOneWidget);
|
|
});
|
|
}
|