Skip to content

Commit ea43666

Browse files
authored
docs: document data-qa selector (#4986)
* docs: document data-qa selector * chore: fix lint
1 parent 021b267 commit ea43666

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/guides/references/cypress-studio.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ describe('Cypress Studio Demo', () => {
247247
})
248248
```
249249

250+
The selectors are generated according to the
251+
[`Cypress.SelectorPlayground` selector priority](/api/cypress-api/selector-playground-api#Default-Selector-Priority).
252+
250253
### Adding a New Test
251254

252255
You can add a new test to any existing `describe` or `context` block, by
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
**_Default Selector Priority:_**
1+
### Default Selector Priority
22

33
1. `data-cy`
44
2. `data-test`
55
3. `data-testid`
6-
4. `id`
7-
5. `class`
8-
6. `tag`
9-
7. `attributes`
10-
8. `nth-child`
6+
4. `data-qa`
7+
5. `id`
8+
6. `class`
9+
7. `tag`
10+
8. `attributes`
11+
9. `nth-child`

0 commit comments

Comments
 (0)