Skip to content

Issue with MenuProvider Causing Overlay During Automation Testing on iOS #286

@vishaledkey

Description

@vishaledkey

First of all, thanks for this amazing library. I appreciate the efforts put into it.

Issue Description:
Recently, I was conducting automation testing with Appium. The tests were running smoothly on my Android emulator, but I encountered a strange issue on iOS. An overlay was appearing over the entire screen. After several hours of debugging, I identified that the issue was caused by the MenuProvider.

When I commented out the MenuProvider, the tests started working on iOS. However, I need to use MenuProvider in my application. I tried setting accessibility={false}, accessibilityLabel, and testID properties, but it seems like MenuProvider does not support these attributes.

Steps to Reproduce:

  1. Implement MenuProvider in a React Native project.
  2. Conduct automation testing with Appium on an iOS emulator/device.
  3. Observe the overlay covering the entire screen during the test.

Environment:

Library version:

"react-native-popup-menu": "^0.16.1",
"react-native": "0.71.6",

OS: iOS

Any suggestions on how to resolve this issue would be greatly appreciated. Thank you in advance for your help!

With MenuProvider

Screenshot 2024-06-26 at 3 38 54 PM

Without MenuProvider

Screenshot 2024-06-26 at 3 40 34 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions