Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu component doesn't play well with e2e tests #5766

Open
2 of 5 tasks
zameschua opened this issue Jul 6, 2023 · 1 comment
Open
2 of 5 tasks

Menu component doesn't play well with e2e tests #5766

zameschua opened this issue Jul 6, 2023 · 1 comment

Comments

@zameschua
Copy link

Description

Detox times out on await whenever there is a

on the screen, Cypress tests cannot find the component when trying to interact with it

CodeSandbox/Snack link

Steps to reproduce

I understand that these are 2 separate issues but lumping them together because they might be related

Detox:

  1. Install Detox on a React-Native (iOS) project with NativeBase
  2. await device.launchApp() with a rendered
  3. Expect Detox to timeout while waiting for app to launch

Cypress:

  1. Install Cypress on a React project with NativeBase
  2. Try to use Cypress to open a and click on any <Menu.Item>
  3. Cypress times out, unable to find <Menu.Item>

NativeBase Version

3.3.6

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

I get that the team is hard at work for gluestack-ui but I can't port the project over until it is stable. Hope I can get some guidance from the team or community for how to work around the issues 🙏

@zameschua
Copy link
Author

update: I narrowed the problem down, the issue only happens when triggerProps.ref is passed into the trigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant