reactjs - React 测试用例在测试库中失败
问题描述
测试库元素错误:Unable to find an element with the text: /learn react/i. 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.
解决方案
推荐阅读
- java - 字体未加载/未找到 Apache fop 2.3
- java - 当java中的值重复时清理对象
- javascript - 有没有办法在 iOS 上的 Safari 中禁用向后滑动动画?
- ios - 如何在 Swift 的类中创建 Getter 或 Setter 属性
- python - 同时重新编码多个变量
- flutter - 如何在颤动中使用 BLoC 模式添加回调?
- javascript - 推特意图分享日文文本在 IE11 中不起作用
- c# - 使用 MonoGame 的内容管理器加载 XML 时出错
- javascript - 如何通过文件加载器将图像加载为多个页面的背景图像
- javascript - 用围绕该单词的 span 标签替换所有出现的单词。不区分大小写