21 lines
571 B
Dart
21 lines
571 B
Dart
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:swifty_companion/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('App démarre avec titre Swifty Companion', (tester) async {
|
|
dotenv.testLoad(fileInput: '''
|
|
CLIENT_ID=test
|
|
CLIENT_SECRET=test
|
|
REDIRECT_URI=http://localhost:8080/callback
|
|
''');
|
|
|
|
await tester.pumpWidget(const SwiftyCompanionApp());
|
|
await tester.pump();
|
|
|
|
expect(find.text('Swifty Companion'), findsOneWidget);
|
|
expect(find.text('Se connecter avec 42'), findsOneWidget);
|
|
});
|
|
}
|