DevExpress / testcafe-react-selectors

TestCafe selector extensions for React apps.
https://testcafe.io
MIT License
205 stars 43 forks source link

`getReact` does not work with `withKey` `withProps` #182

Closed GZLiew closed 3 years ago

GZLiew commented 3 years ago

Im trying to get the props of a component using getReact the following below works fine:

  const PowerButtonSelector = ReactSelector('PowerButton')
  const PowerButtonEle = await PowerButtonSelector.getReact()

But when I try to chain withKey or withProps my test just paused and no error is thrown in the console

  const PowerButtonSelector = ReactSelector('PowerButton').withKey('test')
  const PowerButtonEle = await PowerButtonSelector.getReact() // test stop at this line and doesnt run