senny / corner_stones

capybara building blocks for acceptance tests.
18 stars 8 forks source link

return the text of the selected option instead of its value #18

Closed stmichael closed 12 years ago

stmichael commented 12 years ago

It doesn't make sense to return the value of the selected option of a select box. In most cases the value will be an id of an element in the database. Or at least an id to identify some element. You shouldn't use ids in your acceptance tests because this is not what the user sees in his browser. It makes more sense to return the text of the selected option.

senny commented 12 years ago

I like! :)