Skip to content

Commit

Permalink
correctly look up react instance as __reactInternalInstance no longer…
Browse files Browse the repository at this point in the history
… exists in react17 [run ci]
  • Loading branch information
AtofStryker committed Nov 5, 2024
1 parent eecf71d commit d1cf67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getCommandLogWithText = (command, type = 'method') => {
}

export const findReactInstance = function (dom) {
let key = _.keys(dom).find((key) => key.startsWith('__reactInternalInstance$')) as string
let key = _.keys(dom).find((key) => key.startsWith('__reactFiber')) as string
let internalInstance = dom[key]

if (internalInstance == null) return null
Expand Down

0 comments on commit d1cf67c

Please sign in to comment.