Unable to find field "Name" that is not disabled
Opened this issue · 0 comments
Problem
capybara cannot create a user to pass the test by form disable, seems like the form is disabled. we are trying to figure out in wich part off the code is the error, because we think the test is written rightly .
Background
we are trying to test sign up form so user can create an account
Story
Please add a story if applicable
As a user
In order to use the application
I need to be able to create an account
Spec
Failures:
-
account home page can fill account details
Failure/Error: fill_in 'Name', with: 'John'Capybara::ElementNotFound:
Unable to find field "Name" that is not disabled
Implementation code
describe 'account home page' do
before do
visit root_path
end
it 'create an account' do
click_on 'Sign up'
expect(page).to have_content 'characters'
end
it 'can fill account details' do
fill_in 'Name', with: 'John'
fill_in 'Email', with: 'john@sit.com'
fill_in 'Password', with: 'qwert12345'
fill_in 'Password confirmation', with: 'qwert12345'
click_on 'Create'
end
end
Screenshots
Add your screenshots here
How did you try to solve the problem?
We ask the group, try to find the information inside the repos, then we look in google for the error, then we look in craft overflow, then we fill up the form