Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/features/web_ide_spec_helpers.rb')
-rw-r--r--spec/support/helpers/features/web_ide_spec_helpers.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/support/helpers/features/web_ide_spec_helpers.rb b/spec/support/helpers/features/web_ide_spec_helpers.rb
index 70dedc3ac50..551749a43de 100644
--- a/spec/support/helpers/features/web_ide_spec_helpers.rb
+++ b/spec/support/helpers/features/web_ide_spec_helpers.rb
@@ -8,7 +8,6 @@
# ...
#
# ide_visit(project)
-# ide_create_new_file('path/to/file.txt', content: 'Lorem ipsum')
# ide_commit
#
module WebIdeSpecHelpers
@@ -40,29 +39,6 @@ module WebIdeSpecHelpers
row.matches_css?('.folder.is-open')
end
- # Creates a file in the IDE by expanding directories
- # then using the dropdown next to the parent directory
- #
- # - Throws an error if the parent directory is not found
- def ide_create_new_file(path, content: '')
- parent_path = path.split('/')[0...-1].join('/')
-
- container = ide_traverse_to_file(parent_path)
-
- if container
- click_file_action(container, 'New file')
- else
- ide_tree_actions.click_button('New file')
- end
-
- within '#ide-new-entry' do
- find('input').fill_in(with: path)
- click_button('Create file')
- end
-
- ide_set_editor_value(content)
- end
-
# Deletes a file by traversing to `path`
# then clicking the 'Delete' action.
#