Skip to content

Commit

Permalink
Fix phpcs issues #248
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Jan 2, 2025
1 parent aeaec28 commit 2b9602c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/tests/Context/AcceptanceContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,11 @@ function () use ($selector): void {
$tries = 10;
try {
$testElement = $this->getTestElement($selector, $tries);

} catch (\InvalidArgumentException) {
// all fine here
return;
}
Assert::false($testElement->isVisible());;
Assert::false($testElement->isVisible());
}
);
}
Expand Down Expand Up @@ -283,7 +282,7 @@ public function iSelectTimeInTimeSelector(string $time, string $dataTestSelector
if ($unsupportedMinutes === $minutes) {
throw new \RuntimeException(\sprintf('Time in seconds should not be %d minutes.', $minutes));
}
$minutes = ($minutes) / 5;
$minutes /= 5;
$locatorHour = \sprintf('[data-type="hour"] [data-index="%s"]', $hours);
$locatorMinute = \sprintf('[data-type="minute"] [data-index="%s"]', $minutes);
$this->getTestElement($dataTestSelector)->click();
Expand Down

0 comments on commit 2b9602c

Please sign in to comment.