Dusk tests when using Livewire

I’m playing with Livewire and thought it will be good to write dusk tests for Livewire.

Dusk tests are failing while manually tests are passing. For example, I show toast when post saved but when run dusk test toast does not show and test failed.

I want to ask if anyone try dusk with Livewire, do you have any screenshots or code examples to share I will appreciate it.

1 Like

Hi,

You can take a look at the Livewire code itself, it is using Dusk tests too. For example testing FileDownloads: https://github.com/livewire/livewire/tree/master/tests/Browser/FileDownloads