Start a Laravel Dusk test from inside a Laravel form
Hi guys,
is there any way that i can run a laravel dusk test using a form?
I would like to add the url in a form and when submit the button to run browser test using Dusk.
Well it should be possible I guess, but I've never done that. You first need to find a way to trigger dusk using a normal controller action I guess. So call the artisan command and see what happens in your application.
class DuskController extends Controller
{
public function run() {
$process = new Process('php artisan dusk');
$process->run();
$process->getOutput();
}
}
with no luck either. The ddumps "Could not open input file: artisan".