jeudi 28 janvier 2021

Issues with selectors and react 17?

After updating our system's react version, we are having problems with selectors prompting

Cannot read property 'displayName' of null

The code that's breaking:

await t.expect(selector.exists).ok();

we tried appending a timeout inside ok(), it helped but it's still breaking sometimes at that assertion. That selector in particular is defined with ReactSelector, something like this:

selector = ReactSelector('Title').findReact('h1').withProps('children', 'string')

Aucun commentaire:

Enregistrer un commentaire