Skip to content

Commit

Permalink
fixed codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Oct 21, 2024
1 parent 8b758e8 commit 640f23d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Playwright.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 640f23d

Please sign in to comment.