Skip to content

Commit 95c7d24

Browse files
committed
Style
1 parent 4f28274 commit 95c7d24

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/Playwright/Page.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function url(): string
3939

4040
/**
4141
* Navigates to the given URL.
42+
*
43+
* @param array<string, mixed> $options
4244
*/
4345
public function goto(string $url, array $options = []): self
4446
{
@@ -48,10 +50,6 @@ public function goto(string $url, array $options = []): self
4850
$url = ServerManager::instance()->http()->url().'/'.$url;
4951
}
5052

51-
if ($this->url === $url) {
52-
return $this;
53-
}
54-
5553
$response = $this->sendMessage('goto', [
5654
...['url' => $url, 'waitUntil' => 'load'],
5755
...$options,

src/Support/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function url(): string
107107
'port' => $this->port,
108108
'until' => $this->until,
109109
]),
110-
));
110+
));
111111
}
112112

113113
return sprintf('%s:%d', $this->host, $this->port);

0 commit comments

Comments
 (0)