diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 00:09:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-13 00:09:53 +0300 |
commit | b6f17c69925beded921017fa049385de715553ba (patch) | |
tree | 5f8b2a5fbc6b1e779b7421ceddd219065e65fec9 /spec/support/helpers/features | |
parent | 0ba11d8461a2b091d37bb6308d85e74f2b133803 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/helpers/features')
-rw-r--r-- | spec/support/helpers/features/web_ide_spec_helpers.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/support/helpers/features/web_ide_spec_helpers.rb b/spec/support/helpers/features/web_ide_spec_helpers.rb index 358bfacce05..d5d9fed0f79 100644 --- a/spec/support/helpers/features/web_ide_spec_helpers.rb +++ b/spec/support/helpers/features/web_ide_spec_helpers.rb @@ -12,7 +12,7 @@ # ide_commit # module WebIdeSpecHelpers - include ActionView::Helpers::JavaScriptHelper + include Spec::Support::Helpers::Features::SourceEditorSpecHelpers def ide_visit(project) visit project_path(project) @@ -97,17 +97,11 @@ module WebIdeSpecHelpers end def ide_set_editor_value(value) - editor = find('.monaco-editor') - uri = editor['data-uri'] - - execute_script("monaco.editor.getModel('#{uri}').setValue('#{escape_javascript(value)}')") + editor_set_value(value) end def ide_editor_value - editor = find('.monaco-editor') - uri = editor['data-uri'] - - evaluate_script("monaco.editor.getModel('#{uri}').getValue()") + editor_get_value end def ide_commit_tab_selector |