Skip to content

Commit bc2e830

Browse files
committed
feat: support data-qa selector in selector playground
1 parent 0d48199 commit bc2e830

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/driver/cypress/e2e/cypress/selector_playground.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { $ } = window.Cypress.$Cypress
22
const SelectorPlayground = Cypress.SelectorPlayground
33

44
const SELECTOR_DEFAULTS = [
5-
'data-cy', 'data-test', 'data-testid', 'id', 'class', 'tag', 'attributes', 'nth-child',
5+
'data-cy', 'data-test', 'data-testid', 'data-qa', 'id', 'class', 'tag', 'attributes', 'nth-child',
66
]
77

88
describe('src/cypress/selector_playground', () => {

packages/driver/src/cypress/selector_playground.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import uniqueSelector from '@cypress/unique-selector'
44
import $utils from './utils'
55
import $errUtils from './error_utils'
66

7-
const SELECTOR_PRIORITIES = 'data-cy data-test data-testid id class tag attributes nth-child'.split(' ')
7+
const SELECTOR_PRIORITIES = 'data-cy data-test data-testid data-qa id class tag attributes nth-child'.split(' ')
88

99
type Defaults = {
1010
onElement: Cypress.SelectorPlaygroundDefaultsOptions['onElement'] | null

0 commit comments

Comments
 (0)