Fail
Unable to find an element with the text: Click count: 1. 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
<div
data-name="Clicking In Docs"
id="story--blocks-examples-button--clicking-in-docs-inner"
>
<div
class="css-1q5n1a9"
>
<span>
Detected play function in Chromatic. Rendering only light theme to avoid multiple play functions in the same story.
</span>
</div>
<div
style="margin-bottom: 20px;"
/>
<button
class="css-6yho88"
type="button"
>
Increment
</button>
<div
style="padding: 1rem;"
>
Click count:
0
</div>
</div>View in Storybook1200x4544
Linux Linux Ubuntu 20.04.4
920640 on valentin/move-addon-actions-into-core
Unable to find an element with the text: Click count: 1. 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
<div
data-name="Clicking In Docs"
id="story--blocks-examples-button--clicking-in-docs-inner"
>
<div
class="css-1q5n1a9"
>
<span>
Detected play function in Chromatic. Rendering only light theme to avoid multiple play functions in the same story.
</span>
</div>
<div
style="margin-bottom: 20px;"
/>
<button
class="css-6yho88"
type="button"
>
Increment
</button>
<div
style="padding: 1rem;"
>
Click count:
0
</div>
</div>View in Storybook1200x4544
Linux Linux Ubuntu 20.04.4
920640 on valentin/move-addon-actions-into-core
Caught exception in
play functionThis story threw an error after it finished rendering which means interactions may not have been executed fully.
TestingLibraryElementError: Unable to find an element with the text: Click count: 1. 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
<div
data-name="Clicking In Docs"
id="story--blocks-examples-button--clicking-in-docs-inner"
>
<div
class="css-1q5n1a9"
>
<span>
Detected play function in Chromatic. Rendering only light theme to avoid multiple play functions in the same story.
</span>
</div>
<div
style="margin-bottom: 20px;"
/>
<button
class="css-6yho88"
type="button"
>
Increment
</button>
<div
style="padding: 1rem;"
>
Click count:
0
</div>
</div>
at Object.getElementError (https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:203:381)
at https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:225:215
at https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:217:4914
at https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:225:531
at vw.invoke (https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:292:9323)
at vw.track (https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:292:6278)
at Object.getByText (https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/iframe-5d933cd2.js:292:5586)
at play (https://635781f3500dd2c49e189caf-cdxxwyyubp.capture-loopback.chromatic.com/assets/Button.stories-18594d53.js:8:371)