Patrol execution getting stuck indefinitely
Patrol execution on android is getting stuck indefinitely once in app webview is opened. It's not throwing any errors but just simply getting stuck and not performing the next steps. Cc: @bartekpacia
Patrol version: 3.14.0 Emulator device: Google pixel 8a
Hi @Tawheedwahid Can you try to provide some more details? Patrol logs, adb logs would be useful. I am using Patrol to test webview without issues so the problem must be something more specific.
This is my test.
patrolTest( 'Validate Add Smart Car Flow', tags: ['Sanity', 'Addsmartcar'], ($) async { final app = await buildTestApp(); await $.pumpWidget(splash(app)); // Fresh app instance await $.pump(); expect($(SplashPage), findsOneWidget); await login($); // User logs in await addVehicle($, '2024', 'Ford', 'Escape', 'Active AWD'); await addSmartVehicle($); }, );
Future
And the logs are not getting printed after connect now is tapped and webview is opened.
Logs: ✅ 28. tap widgets with text "Return to Garage". ⏳ 29. tap widgets with text "Connect Now". ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ [info] | 17:54:49 69ms | bloc event: MyGarageBloc: MyGarageSmartCarBannerPressed() ✅ 29. tap widgets with text "Connect Now".
@Tawheedwahid pumps do not work on native side as I remember. Try to remove them when you're interacting with webview if you want to wait for something on native side, use future.delayed
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.