info("Running {$this->script}..."); $result = Process::path(base_path('playwright')) ->timeout($this->processTimeout) ->run("npx playwright test {$this->script} --reporter=line"); $this->line($result->output()); if (! $result->successful()) { $this->error($result->errorOutput()); return self::FAILURE; } $this->afterRun(); $this->info('Done.'); return self::SUCCESS; } protected function afterRun(): void { // no-op by default } }