Content-Length: 263748 | pFad | http://github.com/minsoo-web/testing-library-docs/commit/2f823ef7b4c0b53a70656b6776b150d1e35e887f

A4 docs(byrole.mdx): add tips for input type password (#1410) · minsoo-web/testing-library-docs@2f823ef · GitHub
Skip to content

Commit 2f823ef

Browse files
authored
docs(byrole.mdx): add tips for input type password (testing-library#1410)
* docs(byrole.mdx): add tips for input type password * fix(byrole.mdx): for better explanation see testing-library#1410
1 parent 6cca9ac commit 2f823ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/queries/byrole.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ not replace the functionality of these attributes. For example
7373
its description if `fancy.jpg` could not be loaded. Whether you want to assert
7474
this functionality in your test or not is up to you.
7575

76+
:::tip input type password
77+
78+
Unfortunately, the spec defines that `<input type="password" />` has no implicit role. This means that in order to query this type of element we must fallback to a less powerful query such as `[ByLabelText](queries/bylabeltext.mdx)`.
79+
80+
:::
81+
7682
## Options
7783

7884
### `hidden`

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/minsoo-web/testing-library-docs/commit/2f823ef7b4c0b53a70656b6776b150d1e35e887f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy