We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f933bc6 commit 9c8bea6Copy full SHA for 9c8bea6
spec/support/form_fields/primerized/block_note_editor_input.rb
@@ -6,14 +6,18 @@ class BlockNoteEditorInput
6
include Capybara::DSL
7
8
def open_add_image_dialog
9
- editor = page.find("div[role='textbox']")
+ editor = find_editor
10
editor.send_keys("/image")
11
editor.send_keys(:enter)
12
end
13
14
def open_command_dialog
15
16
- editor.send_keys("/")
+ find_editor.send_keys("/")
+ end
17
+
18
+ def fill_in_with_content(content)
19
20
+ editor.send_keys(content)
21
22
23
0 commit comments