We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb797e3 commit 9ebc2f4Copy full SHA for 9ebc2f4
README.md
@@ -166,6 +166,17 @@ cy.findAllByText('Some Text').should('have.length', 1)
166
cy.findByText('Some Text').should('exist')
167
```
168
169
+## Config testIdAttribute
170
+
171
+If you would like to change the default testId from `data-testId` to `data-test-id`, add to your project's `cypress/support/index.js`:
172
173
+```javascript
174
+import {configure} from '@testing-library/cypress'
175
+configure({testIdAttribute: 'data-test-id'})
176
+```
177
178
+It accepts all configurations listed in [DOM testing library](https://testing-library.com/docs/dom-testing-library/api-configuration).
179
180
## Other Solutions
181
182
I'm not aware of any, if you are please [make a pull request][prs] and add it
0 commit comments