如何选择单选按钮和选择与ember集成测试选项? [英] How to select radio button and select option with ember integration tests?

查看:66
本文介绍了如何选择单选按钮和选择与ember集成测试选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何选择一个单选按钮和特定的选择选项与ember集成测试?我知道如何使用点击和fillIn输入。

How to select a radio button in and a particular select option with ember integration tests? I know how to use the click one and the fillIn for inputs.

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

推荐答案

单选按钮:

click('css selector');

对于选择说你有: / p>

For the select say you have:

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

在您的测试中:

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

这篇关于如何选择单选按钮和选择与ember集成测试选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆