Skip to content

Commit

Permalink
adds count expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Oct 16, 2024
1 parent 18e12a3 commit ff20110
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/SelectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ff20110

Please sign in to comment.