gpt4 book ai didi

ember.js - 如何选择单选按钮并选择 ember 集成测试选项?

转载 作者:行者123 更新时间:2023-12-02 21:43:56 25 4
gpt4 key购买 nike

如何通过 ember 集成测试选择单选按钮和特定选择选项?我知道如何使用单击和填充进行输入。

http://guides.emberjs.com/v1.10.0/testing/test-helpers/

最佳答案

单选按钮:

click('css selector');

对于选择说你有:

<select>
<option>red pill</option>
<option>blue pill</option>
</select>

在您的测试中:

fillIn('css selector', 'red pill');

关于ember.js - 如何选择单选按钮并选择 ember 集成测试选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29303120/

25 4 0
文章推荐: angularjs - 从 angularjs 中的服务调用 Controller 函数
文章推荐: javax.smartcardio 案例 4 APDU 消失 - 6700 响应 - 警告
文章推荐: AngularJs 和