diff --git a/tests/SelectorTest.php b/tests/SelectorTest.php index 632fe89..3759189 100644 --- a/tests/SelectorTest.php +++ b/tests/SelectorTest.php @@ -33,6 +33,13 @@ ->text->toBe(['one', 'two', 'three']); }); +it('can count selectors', function () { + get('/selectors') + ->expectSelector('#first ul li') + ->toHaveCount(3) + ->text->toBe(['one', 'two', 'three']); +}); + it('selects multiple matching nodes via assertion API', function () { get('/selectors') ->querySelector('#first ul li')