diff --git a/spec/support/common_actions/verifications.rb b/spec/support/common_actions/verifications.rb index 92ef462e0..d9c4b2c68 100644 --- a/spec/support/common_actions/verifications.rb +++ b/spec/support/common_actions/verifications.rb @@ -51,14 +51,8 @@ module Verifications sleep 0.01 end - # Fill the editor content - page.execute_script <<-SCRIPT - var ckeditor = CKEDITOR.instances.#{locator} - ckeditor.setData("#{with}") - ckeditor.focus() - ckeditor.updateElement() - SCRIPT - - expect(page).to have_ckeditor label, with: with + within("#cke_#{locator}") do + within_frame(0) { find("body").set(with) } + end end end