I\'m writing a Capybara test and using Rspec for the assertions. My test is failing because there is a CSS style being applied that is causing the text to be in all caps. How ca
I only run into this issue when:
Using poltergeist driver. (I don't know if this also happens with other drivers)
Inspecting page, not page.body for expectations: expect(page).to ...
page
page.body
expect(page).to ...
So, If I do expect(page.body).to ... it just works and solved the issue.
expect(page.body).to ...