I have the following dropdown menu / select implemented in Angular.js:
<select id="user_accounts" ng-model="account_chosen"
ng-options="item.name for item in accounts">
<option value="">All</option>
</select>
The accounts holds an array of objects: account A, account B, account C, which is rendered on the client-side for the user to see.
On the Capybara RSpec side, I want to integrate a test like so:
select('account A', from: "user_accounts")
However, running the test, I get an "Unable to find option 'account A' " error. How can I configure the test to select an option from the dropdown correctly?