After adding debate translatable fields to forms, they will be generated with nested translations names and ids so we can no longer use standard id locator. Using input label text to fill in fields works with both types of forms.
20 lines
442 B
Ruby
20 lines
442 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 ".translatable-fields[data-locale='en'] .cke_wysiwyg_frame"
|
|
|
|
click_link "Debates"
|
|
click_link "Start a debate"
|
|
|
|
expect(page).to have_css ".translatable-fields[data-locale='en'] .cke_wysiwyg_frame"
|
|
end
|
|
|
|
end
|