Skip to content

Commit

Permalink
Adjustments per review
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Nov 2, 2024
1 parent dca38d8 commit d9f59c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Custom/TimeoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public function testShortPageLoadTimeoutThrowsException(): void
$driver = $session->getDriver();
\assert($driver instanceof WebdriverClassicDriver);

$driver->setTimeouts(array('page' => 1)); // Use 1ms timeout to avoid any successful page load.
$driver->setTimeouts(['page' => 500]);

$this->expectException('\Behat\Mink\Exception\DriverException');
$this->expectException(DriverException::class);
$this->expectExceptionMessage('Page failed to load: ');
$session->visit('https://www.webpagetest.org/'); // Use external URL, because it loads slower, then local.
$session->visit($this->pathTo('/page_load.php?sleep=2'));
}
}

0 comments on commit d9f59c1

Please sign in to comment.