isPermissionDialogVisible Only works with the app language being English.
Use case
When my app is support multiple language. isPermissionDialogVisible can't execute because patrol execute text by English
Proposal
I think we should has a optional for execute when the app is other language without English
Hi @duchv-selex ~Could you provide some more details? I've just rechecked this test from example app https://github.com/leancodepl/patrol/blob/master/packages/patrol/example/integration_test/main_test.dart#L51 on both iOS and Android simulators with Polish language set up (popups were correctly with Polish texts) and this test passed.~
@duchv-selex Actually, I was wrong, sorry for that.
What I described above works on Android. If you try to use those native commands (isPermissionDialogVisible etc.) on iOS, they will only work with English. I will add feature label (feature request).
For now you can only work with those permissions on iOS in other languages by using String selectors.
For now you can only work with those permissions on iOS in other languages by using String selectors.
@duchv-selex Remember to set appId argument to com.apple.springboard on iOS! :)
@jBorkowska I don't really understand what you mean.
@zoskar Thank you for you support.
@duchv-selex The comment above suggested, that if you want to implement tapping on your permission dialog in other language on iOS, you would need sth like:
await $.native.tap(
Selector(text: 'your text'),
appId: 'com.apple.springboard',
);
Should be fixed in next patrol release. If some langauge that you need is missing you can contribute https://github.com/leancodepl/patrol/blob/master/CONTRIBUTING.md
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.