зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-03 10:16:18 +03:00
Test the Quill JS presence and version
Этот коммит содержится в:
10
spec/system/quill_js_spec.rb
Обычный файл
10
spec/system/quill_js_spec.rb
Обычный файл
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe 'Quill JS', type: :system do
|
||||
it 'has a Javascript function defined and returns the version', :aggregate_failures do
|
||||
visit '/admin/posts'
|
||||
|
||||
expect(page.evaluate_script('typeof Quill')).to eq 'function'
|
||||
expect(page.evaluate_script('Quill.version')).to eq(ActiveAdmin::QuillEditor::QUILL_VERSION)
|
||||
end
|
||||
end
|
||||
Ссылка в новой задаче
Block a user