Fail
Unable to find an element with the text: Hover over me! I have a title!. 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
id="root"
>
<span
class="_14hvi6g8"
>
<a
class="_16liz7mw"
href="#"
title="I am a title 😎"
>
This link has a title.
</a>
</span>
</div>View in Storybook1168x22
Linux Amazon Linux 2
0e7b6c on wb1453.addtitleprop
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: Hover over me! I have a title!. 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
id="root"
>
<span
class="_14hvi6g8"
>
<a
class="_16liz7mw"
href="#"
title="I am a title 😎"
>
This link has a title.
</a>
</span>
</div>