Open PhilippJunginger opened 2 years ago
selecto
1.17.0react-selecto
1.17.0preact-selecto
1.17.0ngx-selecto
1.17.0svelte-selecto
1.17.0vue-selecto
1.17.0vue3-selecto
1.17.0lit-selecto
1.17.0selecto's new version is released. Check it again.
Thank you for the update @daybrush . I am still experiencing the TypeError for elementFromPoint. There has been a small change, it doesn't say 'document.elementFromPoint is not a function'' but now instead says '_a.elementFromPoint is not a function'.
Can you maybe provide an example of how to test Selecto in jest?
@PhilippJunginger
I'll check it.
I am doing manual testing. I didn't use tests like jest. I'm looking for a way to disable elementFromPoint.
@PhilippJunginger
lit-selecto
1.18.0preact-selecto
1.15.0react-selecto
1.18.0selecto
1.18.0svelte-selecto
1.18.0vue-selecto
1.18.0vue3-selecto
1.4.0ngx-selecto
1.18.0It seems that it was transpiled incorrectly while building. The new version doesn't seem to have any problems.
Environments
Description
Hello!
I am currently trying to Test the behaviour of the Selecto-Component. I implemented a feature, where the User enters a select-mode after a button click. In the select-mode the user can click or drag-to-select items to add them to a selectedItems-state.
While Testing: When I click an Item with userEvent after I have clicked the button for select-mode, I get the Error that
'TypeError: document.elementFromPoint is not a function' and the test fails on the userEvent. If I replace it with fireEvent.click instead of userEvent.click it runs through.
However, when trying to test the dragging with fireEvent.mouseDown/mouseMove/mouseUp, I get the TypeError again that elementFromPoint is not defined.
Does anyone have experience with testing Selecto and can help me out?
Thanks!