class UserTests extends TestCase
{
/**
* @test
* @group user
* @group link
*/
public function userOpenLink(){...}
/**
* @test
* @group member
* @group link
*/
public function memberOpenLink(){...}
}
php artisan dusk --group user // Runs first only
php artisan dusk --group member // Runs second only
php artisan dusk --group link // Runs both tests
Basically, anything you can pass through to PHPUNIT, you can pass through to dusk