From 6b533c75b63cafcfe950938b6b86487a84e516f8 Mon Sep 17 00:00:00 2001 From: Denis LE Date: Thu, 25 Jan 2024 17:36:14 +0100 Subject: [PATCH] doc(queries): add missing byRole example --- docs/docs/queries.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/queries.md b/docs/docs/queries.md index 9517c846..ad7a04e5 100644 --- a/docs/docs/queries.md +++ b/docs/docs/queries.md @@ -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.