Merge branch 'main' of https://github.com/szilvia-csernus/rabbit_rescue #50
Annotations
2 errors
src/Components/ThanksVolunteer.test.jsx > renders ThanksVolunteer modal:
frontend/src/Components/ThanksVolunteer.test.jsx#L32
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name `/thanks for your interest/i`
Here are the accessible roles:
heading:
Name "Thank you for your enquiry!":
<h2
class="_header_9630f6"
/>
--------------------------------------------------
button:
Name "Close":
<button
class="_button_2a3253 _secondary_2a3253 undefined"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div
id="overlay"
>
<div
class="_backdrop_237fdc"
/>
<div
class="_overlay_237fdc"
>
<div
class="_center_237fdc"
>
<section
class="_content_9630f6"
data-testid="thanks-volunteer"
>
<h2
class="_header_9630f6"
>
Thank you for your enquiry!
</h2>
<div
class="_body_9630f6"
>
<p>
We will be in touch soon.
</p>
<div
class="_footer_9630f6"
>
<button
class="_button_2a3253 _secondary_2a3253 undefined"
>
Close
</button>
</div>
</div>
</section>
</div>
</div>
</div>
<div />
</body>
❯ Object.getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByRole node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/Components/ThanksVolunteer.test.jsx:32:26
|
test
Process completed with exit code 1.
|