diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/support/helpers/features/web_ide_spec_helpers.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/support/helpers/features/web_ide_spec_helpers.rb')
-rw-r--r-- | spec/support/helpers/features/web_ide_spec_helpers.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/support/helpers/features/web_ide_spec_helpers.rb b/spec/support/helpers/features/web_ide_spec_helpers.rb index 12d3cecd052..358bfacce05 100644 --- a/spec/support/helpers/features/web_ide_spec_helpers.rb +++ b/spec/support/helpers/features/web_ide_spec_helpers.rb @@ -22,8 +22,6 @@ module WebIdeSpecHelpers click_link('Web IDE') wait_for_requests - - save_monaco_editor_reference end def ide_tree_body @@ -65,17 +63,6 @@ module WebIdeSpecHelpers ide_set_editor_value(content) end - def ide_rename_file(path, new_path) - container = ide_traverse_to_file(path) - - click_file_action(container, 'Rename/Move') - - within '#ide-new-entry' do - find('input').fill_in(with: new_path) - click_button('Rename file') - end - end - # Deletes a file by traversing to `path` # then clicking the 'Delete' action. # @@ -103,20 +90,6 @@ module WebIdeSpecHelpers container end - def ide_close_file(name) - within page.find('.multi-file-tabs') do - click_button("Close #{name}") - end - end - - def ide_open_file(path) - row = ide_traverse_to_file(path) - - ide_open_file_row(row) - - wait_for_requests - end - def ide_open_file_row(row) return if ide_folder_row_open?(row) @@ -130,10 +103,6 @@ module WebIdeSpecHelpers execute_script("monaco.editor.getModel('#{uri}').setValue('#{escape_javascript(value)}')") end - def ide_set_editor_position(line, col) - execute_script("TEST_EDITOR.setPosition(#{{ lineNumber: line, column: col }.to_json})") - end - def ide_editor_value editor = find('.monaco-editor') uri = editor['data-uri'] @@ -180,8 +149,4 @@ module WebIdeSpecHelpers wait_for_requests end end - - def save_monaco_editor_reference - evaluate_script("monaco.editor.onDidCreateEditor(editor => { window.TEST_EDITOR = editor; })") - end end |