We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f5bfa3 commit 8846789Copy full SHA for 8846789
1 file changed
spec/integration/fields/ck_editor_spec.rb
@@ -14,4 +14,19 @@
14
expect { visit new_path(model_name: 'draft') }.not_to raise_error
15
is_expected.to have_selector('#cke_draft_notes')
16
end
17
+
18
+ it 'supports focusing on sub-modals', js: true do
19
+ RailsAdmin.config Comment do
20
+ edit do
21
+ field :content, :ck_editor
22
+ end
23
24
+ visit new_path(model_name: 'player')
25
+ find_link('Add a new Comment').trigger 'click'
26
+ expect(page).to have_text 'New Comment'
27
+ find('.cke_button__link').click
28
+ expect(page).to have_css '.cke_dialog_ui_input_text'
29
+ first(:css, '.cke_dialog_ui_input_text').click
30
+ expect(page).to have_css '.cke_dialog_ui_input_text:focus'
31
32
0 commit comments