Android: Document limitations of enableAirplaneMode
Use case
We are running integration tests in Firebase Test Lab on multiple Android devices in various device languages.
We have observed two limitations of enableAirplaneMode on Android that we would like to document:
- It does not work on some devices, for example, Samsung Galaxy S22 Ultra and Samsung Galaxy A10
- Works only on devices with English as device Language
As we understand, both are caused by text matching for the Airplane mode setting located in https://github.com/leancodepl/patrol/blob/84757de2/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/Automator.kt#L803
Screenshot of the settings page in Samsung Galaxy A10
Proposal
Document the limitations in the code and in the website. I'd be happy to contribute, just need some pointer where is the right place for the website docu.
Hi @madicd,
Maybe can mention it in the method description there:
These descriptions are in
native_automator.dart and native_automator2.dart files in packages/patrol/lib/src/native/native_automator.dart
We're working now on the locales support, so hopefully soon this: Works only on devices with English as device Language will be not an issue 😅
part of this issue will be covered with https://github.com/leancodepl/patrol/pull/2659