Sha256: 22830a1b24d0c5131576470c87ee06e677084054857d46428cc4196cc255bf9e
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'e2e/spec_helper' RSpec.describe 'CKEditor5 Context Integration', type: :feature, js: true do before { visit 'context' } it 'initializes context with multiple editors' do expect(page).to have_css('.ck-editor__editable', count: 2, wait: 10) end it 'initializes the magic context plugin' do eventually do plugin_exists = page.evaluate_script('window.__magicPluginInitialized !== undefined') expect(plugin_exists).to be true end end it 'allows editing content in context editors' do editors = all('.ck-editor__editable') # Test first editor editors[0].click editors[0].send_keys([[:control, 'a'], :backspace]) editors[0].send_keys('Modified Context Item 1') # Test second editor editors[1].click editors[1].send_keys([[:control, 'a'], :backspace]) editors[1].send_keys('Modified Context Item 2') # Verify content expect(editors[0].text).to eq('Modified Context Item 1') expect(editors[1].text).to eq('Modified Context Item 2') end end
Version data entries
11 entries across 11 versions & 2 rubygems