diff --git a/src/Playwright.php b/src/Playwright.php index bcfbe66..df36246 100644 --- a/src/Playwright.php +++ b/src/Playwright.php @@ -73,7 +73,9 @@ public function _before(TestInterface $test): void $this->testId = uniqid(); $this->currentTest = null; $this->testHasFailed = false; - $this->sendCommand('before', [ + $this->sendCommand( + 'before', + [ 'id' => $this->testId, 'title' => $test->getMetadata()->getName(), ], @@ -97,11 +99,10 @@ public function _after(TestInterface $test): void ], 'hook'); if ($this->currentTest) { - $this->debugSection('Test', $this->currentTest); if (isset($this->currentTest['artifacts'])) { - foreach ($this->currentTest['artifacts'] as $artifact => $file) { + foreach ($this->currentTest['artifacts'] as $artifact => $file) { $test->getMetadata()->addReport($artifact, $file); } }