The integration_test worked, but the android emulator doesn't seem to be running. #1631
-
Any suggestions? Steps to reproduce
Full Codeexample_test.dartimport 'package:patrol/patrol.dart';
import 'package:patrol_sandbox/main.dart';
void main() {
patrolTest('demo', nativeAutomation: true, (PatrolTester $) async {
await $.pumpWidgetAndSettle(const MyApp());
// prepare network conditions
await $.native.enableCellular();
await $.native.disableWifi();
// toggle system theme
await $.native.enableDarkMode();
// handle native location permission request dialog
await $.native.selectFineLocation();
await $.native.grantPermissionWhenInUse();
// tap on the first notification
await $.native.openNotifications();
await $.native.tapOnNotificationByIndex(0);
});
}
patrol versionpatrol: ^2.2.1 patrol CLI version
|
Beta Was this translation helpful? Give feedback.
Answered by
bartekpacia
Aug 11, 2023
Replies: 2 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mafreud
-
Believe it or not a single whitespace at the end of the java file extension was the reason I had the same issue. I'm surprised that is even allowed on a mac. May I suggest that you add a check in the code to verify if the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
MainActivityTest.java
was in a wrong directory. See the fix -> mafreud/patrol_sandbox#8