Add documentation for Flux testing #968
Unanswered
raz-iacob
asked this question in
Feature Requests
Replies: 1 comment
-
|
Good idea. I also had trouble setting a value for the I was writing a bunch of examples here, but I found the solution while trying out different things. Maybe this can be helpful for others. If you want to set a it('can set range')->livewire(Component::class)
// Good
->set('range', ['start' => $start, 'end' => $end])
// Bad
->set('range', new DateRange($start, $end));
->set('range', [$start, $end]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be good to have some documentation for testing. For example I wanted to test if a modal was closing and eventually I figure it out that I can do
But there are many other cases where I have no idea how to test the Flux components.
What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions