File tree Expand file tree Collapse file tree
tests/Browser/Playwright/Locator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,7 +282,9 @@ public function getAttribute(string $name): ?string
282282 */
283283 public function waitFor (?array $ options = null ): void
284284 {
285- $ this ->sendMessage ('waitForSelector ' , $ options ?? []);
285+ $ response = $ this ->sendMessage ('waitForSelector ' , $ options ?? []);
286+
287+ $ this ->processVoidResponse ($ response );
286288 }
287289
288290 /**
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use PHPUnit \Framework \ExpectationFailedException ;
6+
57it ('throws an expectation failed exception when the element is not visible ' , function (): void {
68 $ page = page ()->goto ('/test/element-tests ' );
79
810 $ locator = $ page ->locator ('input[name="404"] ' );
911
1012 $ locator ->waitFor ();
11- });
13+ })-> throws (ExpectationFailedException::class) ;
You can’t perform that action at this time.
0 commit comments