How to select radio button and select option with ember integration tests?

不打扰是莪最后的温柔 提交于 2019-12-12 15:02:13

问题


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/


回答1:


Radio button:

click('css selector');

For the select say you have:

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

In your test:

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


来源:https://stackoverflow.com/questions/29303120/how-to-select-radio-button-and-select-option-with-ember-integration-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!