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 7a5e8ef commit 5eeb765Copy full SHA for 5eeb765
tests/spec/features/editor_types_spec.rb
@@ -25,4 +25,29 @@ def simple_editor_code
25
}
26
EOF
27
end
28
+
29
+ scenario "using the Monaco editor" do
30
+ in_config_menu { select("monaco") }
31
32
+ editor = page.find('.monaco-editor')
33
34
+ # Click on the last line as that will replace the entire content
35
+ editor.find('.view-line:last-child').click
36
+ t = editor.find('textarea', visible: false)
37
+ t.set(monaco_editor_code, clear: :backspace)
38
39
+ click_on("Run")
40
41
+ within(:output, :stdout) do
42
+ expect(page).to have_content 'Monaco editor'
43
+ end
44
45
46
+ # Missing indentation and closing curly braces as those are auto-inserted
47
+ def monaco_editor_code
48
+ <<~EOF
49
+ fn main() {
50
+ println!("Using the Monaco editor");
51
+ EOF
52
53
0 commit comments