<aside> 💡 Queries are the methods that Testing Library gives you to find elements on the page. There are several types of queries ("get", "find", "query"); the difference between them is whether the query will throw an error if no element is found or if it will return a Promise and retry. Depending on what page content you are selecting, different queries may be more or less appropriate. See the priority guide for recommendations on how to make use of semantic queries to test your page in the most accessible way.
</aside>
시맨틱 쿼리를 사용하여 가장 접근하기 쉬운 방식으로 페이지를 테스트하는 방법에 대한 권장 사항은 우선 순위 가이드를 참조하세요.<aside> 💡 Queries Accessible to Everyone Queries that reflect the experience of visual/mouse users as well as those that use assistive technology.
</aside>
<aside> 💡 getByRole: This can be used to query every element that is exposed in the accessibility tree. With the name option you can filter the returned elements by their accessible name. This should be your top preference for just about everything. There's not much you can't get with this (if you can't, it's possible your UI is inaccessible). Most often, this will be used with the name option like so: getByRole('button', {name: /submit/i}). Check the list of roles.
</aside>