Closed Xosmond closed 8 years ago
Usually this means you're still using transactional testing so the records created in your test aren't visible to the app - see https://github.com/jnicklas/capybara#transactions-and-database-setup
I'd also recommend using FactoryGirl.create
or calling User.create!
so that you see a failure message when a record fails to save.
This doesn't look like a bug in capybara-webkit, so I'm going to close this issue. However, feel free to continue commenting and asking for help.
Alright, twaddle was correct, i had to use database_cleaner to use truncation.
Im using devise for authentication and when i login with no javascript, everything works well, but when i add capybara-webkit as javascript engine, i get an error saying that the login information is incorrect.
When i did "save_and_open_screenshot" i saw that the fields were filled before click on login button. code
What could be the problem here?
PD: When i do this:
Im getting these:
So the fill action is working correctly. PD2: getting same problem with Poltergeist now.