We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11bdfb9 commit 9d7e5a0Copy full SHA for 9d7e5a0
docs/docs/queries.md
@@ -43,6 +43,7 @@ spectator.query(byLabel('By label'));
43
spectator.query(byText('By text'));
44
spectator.query(byText('By text', {selector: '#some .selector'}));
45
spectator.query(byTextContent('By text content', {selector: '#some .selector'}));
46
+spectator.query(byRole('checkbox', { checked: true }));
47
```
48
49
The difference between `byText` and `byTextContent` is that the former doesn't match text inside a nested elements.
0 commit comments