import 'package:eatvio_app/app_keys.dart'; import 'package:eatvio_app/core/env_config.dart'; import 'package:flutter_test/flutter_test.dart'; Future skipSignIn(WidgetTester tester) async { final emailFieldFinder = find.byKey(AppKeys.emailTextFieldAuthScreen); final passwordFieldFinder = find.byKey(AppKeys.passwordTextFieldAuthScreen); final signInButtonFinder = find.byKey(AppKeys.signInButtonAuthScreen); expect(emailFieldFinder, findsOneWidget, reason: 'Email text field should be found.'); expect(passwordFieldFinder, findsOneWidget, reason: 'Password text field should be found.'); expect(signInButtonFinder, findsOneWidget, reason: 'Sign In button should be found.'); await tester.enterText(emailFieldFinder, EnvConfig.testEmail); await tester.enterText(passwordFieldFinder, EnvConfig.testPassword); await tester.pumpAndSettle(); await tester.tap(signInButtonFinder); await tester.pumpAndSettle(const Duration(seconds: 3)); }