Skip to content

Commit

Permalink
use dusk --browse option instead of setting an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjatenee committed Mar 11, 2021
1 parent 5f02539 commit 0fe557a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/MagicTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class MagicTestCommand extends Command
public function handle()
{
$this->comment('Your Magic Test session is starting...');

$filter = $this->option('filter') ? (' --filter ' . $this->option('filter')) : '';
shell_exec('DUSK_HEADLESS_DISABLED=1 MAGIC_TEST=1 php artisan dusk' . $filter);
shell_exec('php artisan dusk --browse' . $filter);
}
}

0 comments on commit 0fe557a

Please sign in to comment.