зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-08-28 15:36:17 +03:00
Test the Quill JS presence and version
Этот коммит содержится в:
@@ -3,5 +3,6 @@
|
||||
module ActiveAdmin
|
||||
module QuillEditor
|
||||
VERSION = '0.3.4'
|
||||
QUILL_VERSION = '1.3.7'
|
||||
end
|
||||
end
|
||||
|
||||
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