-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply workaround for false-positive detection of pointer-events
- Loading branch information
1 parent
2dd7fb5
commit 14bd586
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## FALSE_POSITIVE_POINTER_EVENTS | ||
|
||
When running vitest in browser mode, the pointer events are not correctly simulated. This can be related to this [known issue](https://github.com/microsoft/playwright/issues/12821). The bug also appears not only in chromium, but also in webkit. The workaround is to use `userEvent` events with the setting `{ pointerEventsCheck: 0 }` to disable the pointer events check. | ||
|
||
```javascript | ||
await userEvent.type(titleInput, 'New Note Title', { pointerEventsCheck: 0 }) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters