Sup*_*per 3 ember.js ember-cli
如何使用ember集成测试选择单选按钮和特定选择选项?我知道如何使用click one和fillIn作为输入.
单选按钮:
click('css selector');
Run Code Online (Sandbox Code Playgroud)
对于select你的说法:
<select>
<option>red pill</option>
<option>blue pill</option>
</select>
Run Code Online (Sandbox Code Playgroud)
在你的测试中:
fillIn('css selector', 'red pill');
Run Code Online (Sandbox Code Playgroud)