Integration test for H1 text failing when it should be passing (Rspec and Capybara)
- by rebec
Below you can see my test for what happens when a user tries to access the page to edit a profile photo that they don't own. I've used the same test on the NEW action, where it worked fine, but it surprised me by failing when I copied it down to the EDIT action tests.
I've used save_and_open_page to test what Capybara's seeing (as you can see…