feat: add support for @testing-library/user-event
#176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What:
I am trying to enable user launching
user-event
methods inQueryMarkup
.Right now the
click
event is enabled while the others are not enabled yet.Furthermore it could be useful to have a toggle to switch between the original state and the one obtained executing
user-event
inserted method.Why:
It would be an awesome feature like requested in issue #10 .
How:
userEvent
toevaluator
contextuser-event
query on original markupresult
and passing it toPreview
inPlayground
componentMarkupEditor
inparser
Result
when the user inserts auser-event
methoduser-event
method executionusePlayground
adding a new action type to reducerChecklist:
userEvent
toevaluator
contextclick
method is working and performs an actual transformation on the original markup)user-event
query on original markupresult
and passing it toPreview
inPlayground
componentMarkupEditor
inparser
Result
when the user inserts auser-event
methoduser-event
method executionusePlayground
adding a new action type to reducerTo achieve the complete resolution of #10 managing of state after and beforeuser-event
method execution is still needed.Right now the only
user-event
method that seems work isclick
.