I have a field with a proper label that I can fill in with capybara without a problem:
fill_in \'Your name\', with: \'John\'
I\'d like to check
I was wondering how to do something slightly different: I wanted to test whether the field had some value (while making use of Capybara's ability to re-test the matcher until it matches). It turns out that it's possible to use a "filter block" to do this:
expect(page).to have_field("field_name") { |field|
field.value.present?
}