import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:pong/main.dart'; void main() { testWidgets('Tests "Berühren um zu beginnen!"', (WidgetTester tester) async { final tapToStart = find.text("Berühren um zu beginnen!"); await tester.pumpWidget(const MaterialApp(home: StartScreen())); expect(tapToStart, findsOneWidget); }); testWidgets('Tests ', (WidgetTester tester) async { final tapToStart = find.text("Berühren um zu beginnen!"); await tester.pumpWidget(const MaterialApp(home: StartScreen())); await tester.tap(tapToStart); await tester.pump(); }); }