I have a link inside a turbo frame without
_top. So when the link is clicked, a form is shown without any change in the url. But when capybara tests are run,
click_link changes the URL and that is causing failures. Capybara test
js: true. My code looks like this
it "creates new item", js: true do sign_in(@user) click_link 'New Item' expect(page).not_to have_content 'New Item' expect(page).to have_button :create_item_btn end
Has anyone seems anything like this and any recommendation? Thanks!