Answer the question
In order to leave comments, you need to log in
When using fill_in Capybara, the field is not filled, what's wrong?
To study integration tests, I began to use this stone.
I connected it, but when the user fills out the form, the test does not pass.
visit new_user_path
fill_in 'Email', :with => '[email protected]'
click_button 'New user'
expect(page).to have_content 'Success'
visit new_user_path
click_button 'New user'
expect(page).to have_content 'Success'
visit new_user_path
click_button 'New user'
save_and_open_page
expect(page).to have_content 'Success'
Answer the question
In order to leave comments, you need to log in
Connect with IDs.
For example, in the case of a device:fill_in 'user_email', :with => '[email protected]'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question