问题
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