fix: tests #20946
Annotations
3 errors and 2 warnings
Run frontend test:
frontend/src/templates/Field/YesNo/YesNoField.test.tsx#L43
TestingLibraryElementError: Unable to find an element with the text: You have submitted: Yes. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
class="chakra-ui-light"
>
<div>
<form
novalidate=""
>
<div
class="chakra-form-control css-1kxonj9"
role="group"
>
<div
class="css-1l6dwoh"
>
<label
class="chakra-form__label css-q18lbp"
for="611b94dfbb9e300012f702a7"
id="611b94dfbb9e300012f702a7-label"
>
<div
class="css-9x4jlj"
>
Do you like apples
</div>
<p
class="chakra-text css-2mq13p"
id="611b94dfbb9e300012f702a7-helptext"
>
Not oranges, not any other fruits. I only want to know your apple preferences.
</p>
<div
class="css-0"
/>
</label>
</div>
<div
class="chakra-stack css-1hohgv6"
role="radiogroup"
>
<label
aria-label="undefined. Do you like apples Yes option, selected"
class="css-192ptg6"
data-testid="611b94dfbb9e300012f702a7-left"
role="button"
>
<input
aria-hidden="true"
aria-required="true"
id="radio-:r6:"
name="611b94dfbb9e300012f702a7"
required=""
style="border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; width: 1px; margin: -1px; padding: 0px; overflow: hidden; white-space: nowrap; position: absolute;"
type="radio"
value="No"
/>
<div
aria-hidden="true"
class="css-ym4em9"
data-checked=""
data-hover=""
>
<svg
class="chakra-icon css-w31rhm"
fill="currentColor"
focusable="false"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z"
/>
</svg>
Yes
</div>
</label>
<label
aria-label="undefined. Do you like apples No option, unselected"
class="css-1qlz5ut"
data-testid="611b94dfbb9e300012f702a7-right"
role="button"
>
<input
aria-hidden="true"
aria-required="true"
id="radio-:r7:"
name="611b94dfbb9e300012f702a7"
required=""
style="border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; width: 1px; margin: -1px; padding: 0px; overflow: hidden; white-space: nowrap; position: absolute;"
type="radio"
value="Yes"
/>
<div
aria-hidden="true"
class="css-19qr0p"
data-hover=""
>
<svg
class="chakra-icon css-w31rhm"
fill="currentColor"
focusable="false"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"
/>
</svg>
No
</div>
</label>
</div>
</div>
<button
|
Run frontend test:
frontend/src/templates/Field/YesNo/YesNoField.test.tsx#L82
TestingLibraryElementError: Unable to find an element with the text: You have submitted: No. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
class="chakra-ui-light"
>
<div>
<form
novalidate=""
>
<div
class="chakra-form-control css-1kxonj9"
role="group"
>
<div
class="css-1l6dwoh"
>
<label
class="chakra-form__label css-q18lbp"
for="611b94dfbb9e300012f702a7"
id="611b94dfbb9e300012f702a7-label"
>
<div
class="css-9x4jlj"
>
Do you like apples
<span
class="chakra-text css-1e1ucwy"
role="presentation"
>
(optional)
</span>
</div>
<p
class="chakra-text css-2mq13p"
id="611b94dfbb9e300012f702a7-helptext"
>
Not oranges, not any other fruits. I only want to know your apple preferences.
</p>
</label>
</div>
<div
class="chakra-stack css-1hohgv6"
role="radiogroup"
>
<label
aria-label="undefined. Do you like apples Yes option, unselected"
class="css-1984e6a"
data-testid="611b94dfbb9e300012f702a7-left"
role="button"
>
<input
aria-hidden="true"
id="radio-:re:"
name="611b94dfbb9e300012f702a7"
style="border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; width: 1px; margin: -1px; padding: 0px; overflow: hidden; white-space: nowrap; position: absolute;"
type="radio"
value="No"
/>
<div
aria-hidden="true"
class="css-ym4em9"
data-hover=""
>
<svg
class="chakra-icon css-w31rhm"
fill="currentColor"
focusable="false"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z"
/>
</svg>
Yes
</div>
</label>
<label
aria-label="undefined. Do you like apples No option, selected"
class="css-1g2xql9"
data-testid="611b94dfbb9e300012f702a7-right"
role="button"
>
<input
aria-hidden="true"
id="radio-:rf:"
name="611b94dfbb9e300012f702a7"
style="border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; width: 1px; margin: -1px; padding: 0px; overflow: hidden; white-space: nowrap; position: absolute;"
type="radio"
value="Yes"
/>
<div
aria-hidden="true"
class="css-19qr0p"
data-checked=""
data-hover=""
>
<svg
class="chakra-icon css-w31rhm"
fill="currentColor"
focusable="false"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"
/>
</svg>
No
</div>
</label>
</div>
</div>
<button
class="chakra
|
Run frontend test
Process completed with exit code 1.
|
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading