Skip to content

Patrol execution getting stuck indefinitely #2540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tawheedwahid opened this issue Feb 25, 2025 · 2 comments
Open

Patrol execution getting stuck indefinitely #2540

Tawheedwahid opened this issue Feb 25, 2025 · 2 comments
Assignees

Comments

@Tawheedwahid
Copy link

Tawheedwahid commented Feb 25, 2025

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

@zoskar
Copy link

zoskar commented Feb 28, 2025

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.

@zoskar zoskar added the waiting for response Waiting for user's response label Feb 28, 2025
@zoskar zoskar self-assigned this Feb 28, 2025
@Tawheedwahid
Copy link
Author

Tawheedwahid commented Mar 5, 2025

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 addSmartVehicle(PatrolIntegrationTester $) async { expect($('Connect Your Vehicle'), findsOneWidget);
await $('Connect Now').tap();
await $.pump();
await $.native.tap(Selector(text: 'Continue')); await $.pumpAndSettle();
}

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".

@github-actions github-actions bot removed the waiting for response Waiting for user's response label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants