给定匹配多个元素的 getByRole 选择器。它会返回什么? https://testing-library.com/docs/queries/byrole/
getByRole('button')
<body>
<main>
<button>Open dialog</button>
</main>
<div role="dialog">
<button>Close dialog</button>
</div>
</body>
会返回什么? 元素很少,有匹配的元素还是抛出错误?
BCBGeneration g cng kuch nc nc