unit-testing - 如何在 React 测试库中使用 *byRole 选择地址元素?
问题描述
我试过 screen.queryByRole("address") 但它不起作用。
解决方案
推荐阅读
- batch-file - Windows 10. 文件批处理中的错误 if 和 else
- php - 双引号和单引号 PHP
- django - 使用viewets.ModelViewSet视图更新Django rest框架模型中的外键
- flutter - 错误状态:使用 IOWebSocketChannel 时已监听 Stream
- c# - FontFamily 导入不适用于 Visual Studio 中的 C# Xamarin
- javascript - 你能在 JavaScript 中将一个变量声明为另一个变量的内容吗?
- r - cor() 热图也考虑了滞后?
- python-3.x - FASTA 文件中运行脚本中的 KeyError 'c'?
- python - 取消缓冲时,Unix 脚本命令会中断终端
- javascript - 当前一个流接收到第一个值时,RxJS 合并