I had a question about this video:
https://www.youtube.com/watch?v=zS5opOeWFhA
I keep getting this error,
bash
Failures:
1) signing in visiting the site to sign in
Failure/Error: expect(page).to have_content("Signed in successfully.")
expected to find text "Signed in successfully." in "Sign in Log in Email Password Remember me Sign up Forgot your password?"
# ./spec/features/signin_spec.rb:15:in `block (2 levels) in <top (required)>'
Finished in 7.38 seconds (files took 3.93 seconds to load)
4 examples, 1 failure
Basically it looks like it sees text but not the expected text and the text it sees is the text prior to the log in attempt.
I was wondering if you had any idea why it is failing.
I noticed that we use the click_link for 'Sign in' prior to filling the fields of the user data which seemed like it might be in the wrong order.
I reversed the order in pry and it still did not pass. I have tested the login manually by providing seed data also to confirm that there are no spelling or case sensitivity issues.
Here is my repo:
https://github.com/dmc2015/factory-girl-testing
I had a question about this video:
https://www.youtube.com/watch?v=zS5opOeWFhA
I keep getting this error,
Basically it looks like it sees text but not the expected text and the text it sees is the text prior to the log in attempt.
I was wondering if you had any idea why it is failing.
I noticed that we use the click_link for 'Sign in' prior to filling the fields of the user data which seemed like it might be in the wrong order.
I reversed the order in pry and it still did not pass. I have tested the login manually by providing seed data also to confirm that there are no spelling or case sensitivity issues.
Here is my repo:
https://github.com/dmc2015/factory-girl-testing