The problem I'm having (and I've tried all the solutions on the interwebs) is how to select an element from a grouped select with capybara.
Here's the dropdown:
<%= f.grouped_collection_select(:subcategory_id, Category.order(:name), :subcategories, :name, :id, :name, {}, { :class=> "form-control" }) %>
Here's one of the ways I've tried to select it.
select("Ortodoncista", from: 'provider[subcategory_id]')
The error
Unable to find option "Ortodoncista" (Capybara::ElementNotFound)