Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Mar 12, 2024
1 parent bb601f6 commit 8187964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Add `bySelector` and `byAttribute` to [@testing-library/dom](https://github.com/
## Why?

The [@testing-library/dom](https://github.com/testing-library/dom-testing-library) manager believes that using `querySelector` API as the escape hatch in the test code is a bad practice.

But for some special purpose: when automating in browser extensions, it will be extremely difficult without a `css selector`.

See: [PR (267)](https://github.com/testing-library/dom-testing-library/pull/267) [issues (512)](https://github.com/testing-library/dom-testing-library/issues/512)
Expand Down

0 comments on commit 8187964

Please sign in to comment.