Skip to content

Commit

Permalink
doc(queries): add missing byRole example (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
ledenis committed Jan 25, 2024
1 parent 11bdfb9 commit 9d7e5a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/queries.md
Expand Up @@ -43,6 +43,7 @@ spectator.query(byLabel('By label'));
spectator.query(byText('By text'));
spectator.query(byText('By text', {selector: '#some .selector'}));
spectator.query(byTextContent('By text content', {selector: '#some .selector'}));
spectator.query(byRole('checkbox', { checked: true }));
```

The difference between `byText` and `byTextContent` is that the former doesn't match text inside a nested elements.
Expand Down

0 comments on commit 9d7e5a0

Please sign in to comment.