Skip to content

View Example Isn't Hit In visitAllPages e2e Test #7392

@agniuks

Description

@agniuks

Environment

Run the following in your terminal and copy the results here.

  1. npx react-native --version: 5.0.1-alpha.1
  2. npx react-native info: System: OS: Windows 10 10.0.19042 CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz Memory: 15.48 GB / 31.59 GB Binaries: Node: 14.15.4 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled Versions: 10.0.17763.0, 10.0.18362.0 IDEs: Android Studio: Not Found Visual Studio: 16.8.31019.35 (Visual Studio Enterprise 2019) Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-windows: Not Found npmGlobalPackages: *react-native*: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Run yarn windows --no-launch followed by yarn e2etest .\VisitAllPages.test.ts in e2e-test-app directory
  2. Notice how the View component page isn't actually opened

Expected Results

visitAllPages should click on the View example button and actually enter the page as intended. I think this isn't happening, because when 'View' is entered in the search bar, View example button is not actually visible - because there are several other examples with "View" in the title, you have to scroll to see the View button even after searching. Adding some regex along with the example name(e.g. '\tView\t') in the e2etest navigation.ts file fixes this in that the search returns only the one example - but with this there was unexpected behavior in that when the tests run - sometimes the example wouldn't get clicked and the tests would time out.

view now e2e
view in e2e

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions