testing-react
testing-react copied to clipboard
What is the TypeScript return type of within()?
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.type(canvas.getByRole('textbox'), 'Hello world!');
},
};
In this example, what is the type of canvas? I tried BoundFunctions<HTMLElement> and that did not work. Please let me know :D
And for screen?
Hey @FrozenFury sorry but I believe this question doesn't have anything to do with this library. Happy to be proven wrong, feel free to reopen this issue with more context and I might be able to help you out. Thank you!