The `type: :feature` is automatically detected by RSpec because these tests are inside the `spec/features` folder. Using `feature` re-adds a `type: :feature` to these files, which will result in a conflict when we upgrade to Rails 5.1's system tests. Because of this change, we also need to change `background` to `before` or else these tests will fail.
19 lines
373 B
Ruby
19 lines
373 B
Ruby
require "rails_helper"
|
|
|
|
describe "CKEditor" do
|
|
|
|
scenario "is present before & after turbolinks update page", :js do
|
|
author = create(:user)
|
|
login_as(author)
|
|
|
|
visit new_debate_path
|
|
|
|
expect(page).to have_css "#cke_debate_description"
|
|
|
|
click_link "Debates"
|
|
click_link "Start a debate"
|
|
|
|
expect(page).to have_css "#cke_debate_description"
|
|
end
|
|
|
|
end |