I am new to Capybara. I try to use “visit root_path” and then check if the spicified tag is rendered correctly. Firstly there is “ElementNotFound” error. And i use “puts page.html” to see the response page content. And i found that only the static parts of the page are rendered. And all the other parts dynamically created by rails(<%= %>) are NOT. BTW, i put this test in requests folder. All Capybara config are default.
Did anyone come with similar problem like it?
Try to use lanchy gem and save_and_open_page in your tests. Check this post