patrol icon indicating copy to clipboard operation
patrol copied to clipboard

Android: Document limitations of enableAirplaneMode

Open madicd opened this issue 6 months ago • 2 comments

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 Image

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.

madicd avatar Jun 06 '25 19:06 madicd

Hi @madicd, Maybe can mention it in the method description there: Image 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 😅

Kendru98 avatar Jul 08 '25 14:07 Kendru98

part of this issue will be covered with https://github.com/leancodepl/patrol/pull/2659

Kendru98 avatar Jul 28 '25 11:07 Kendru98