Adyen / adyen-react-native

Adyen React Native
https://docs.adyen.com/checkout
MIT License
44 stars 32 forks source link

Appium is unable to detect the on/off recurring button #532

Open iranaahsanali opened 1 week ago

iranaahsanali commented 1 week ago

Describe the bug Appium is unable to detect the on/off recurring button within the drop-in card component during integration testing. This prevents us from writing comprehensive test cases for this specific feature.

To Reproduce Steps to reproduce the behaviour:

  1. Launch the mobile app.
  2. Navigate to the screen containing the drop-in card component.
  3. Locate the on/off recurring button within the component.
  4. Attempt to interact with the button using Appium's locators.

Expected behaviour Appium should be able to identify and interact with the on/off recurring button within the drop-in card component, allowing for automated testing of its functionality.

Screenshots Screenshot 2024-09-23 at 7 01 49 PM

*Smartphone:

Additional context "@adyen/react-native": "1.2.0",

atmamont commented 6 days ago

Hi @iranaahsanali,

What locator strategy do you use and what element do you look for? Underlying SDK does not handle "row" click and user must tap on the switch itself. If you use Appium Inspector, please try drilling down to the switch element and locating it instead of locating the row.

We also plan to use Appium internally and we are keen to make changes that would make testing easier!