We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eaeb53 commit 2a85598Copy full SHA for 2a85598
1 file changed
tests/Pest.php
@@ -2,6 +2,8 @@
2
3
declare(strict_types=1);
4
5
+use Pest\Browser\Playwright\Element;
6
+use Pest\Expectation;
7
use Pest\TestSuite;
8
9
pest()
@@ -28,9 +30,7 @@ function playgroundUrl(string $path = '/'): string
28
30
return 'http://localhost:9357/'.mb_ltrim($path, '/');
29
31
}
32
-use Pest\Browser\Playwright\Element;
-use Pest\Expectation;
33
-
+// todo: move this to Pest core
34
expect()->extend('toBeChecked', function (): Expectation {
35
36
expect($this->value)->toBeInstanceOf(Element::class)
0 commit comments