You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'package:flutter/material.dart';
import'common.dart';
voidmain() {
patrol(
'counter state is the same after going to Home and switching apps',
($) async {
awaitcreateApp($);
await $(FloatingActionButton).tap();
expect($(#counterText).text, '1');
await $(#textField).enterText('Hello, Flutter!');
expect($('Hello, Flutter!'), findsOneWidget);
await $.native.pressHome(); // worksawait $.native.openApp(); // never gets calledexpect($(#counterText).text, '1');
await $(FloatingActionButton).tap();
expect($(#counterText).text, '2');
expect($('Hello, Flutter!'), findsOneWidget);
},
);
}
patrol test -t integration_test/example_test.dart in example app
Actual results
After pressHome() is executed, the app is never opened again. The CLI simply reports that tests passed after a few seconds. But if we look in the logcat, there's an exception saying that app couldn't be re-opened. See attached logcat below, search for Rejecting re-init on previously-failed class java.lang.Class.
Search for "openApp()". I didn't find the relevant logs, but I didn't try hard and long enough.
bartekpacia
changed the title
openApp() crashes on Motorola Moto G6, but tests display as passedopenApp() never executes, but tests display as passed
Jun 23, 2023
Steps to reproduce
integration_test/example_test.dart
patrol test -t integration_test/example_test.dart
in example appActual results
After
pressHome()
is executed, the app is never opened again. The CLI simply reports that tests passed after a few seconds. But if we look in the logcat, there's an exception saying that app couldn't be re-opened. See attached logcat below, search forRejecting re-init on previously-failed class java.lang.Class
.Expected results
Tests should execute and pass.
If it fails, a crash should be reported.
Logs
logcat.txt
Device info
Motorola moto (g6) (XT-1925-5)
Android 9 (PPSS29.55-37-7-10)
Security Patch - 1st May 2020 (lol)
Patrol version
Latest master.
Flutter Doctor output
v3.10.5
The text was updated successfully, but these errors were encountered: