summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-10-03 09:55:00 -0400
committerMark Lapierre <mlapierre@gitlab.com>2018-10-03 09:55:00 -0400
commit95364067d52bf65b92ace67c8ad6f217aae2c97e (patch)
treeaaf3791ad6441a50248cfbc9b8e9d0b7c718323e
parent44bac9f9751a3bbbf3c9a992b559a4a590fe6e1b (diff)
downloadgitlab-ce-95364067d52bf65b92ace67c8ad6f217aae2c97e.tar.gz
Remove ModalDialog and other unused code
-rw-r--r--qa/qa.rb1
-rw-r--r--qa/qa/page/component/modal_dialog.rb24
-rw-r--r--qa/qa/page/project/show.rb4
-rw-r--r--qa/qa/page/project/web_ide/edit.rb6
4 files changed, 0 insertions, 35 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index ea77112ffac..9392e26c840 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -259,7 +259,6 @@ module QA
autoload :GroupsFilter, 'qa/page/component/groups_filter'
autoload :Select2, 'qa/page/component/select2'
autoload :DropdownFilter, 'qa/page/component/dropdown_filter'
- autoload :ModalDialog, 'qa/page/component/modal_dialog'
end
end
diff --git a/qa/qa/page/component/modal_dialog.rb b/qa/qa/page/component/modal_dialog.rb
deleted file mode 100644
index 05615a548c2..00000000000
--- a/qa/qa/page/component/modal_dialog.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-module QA
- module Page
- module Component
- module ModalDialog
- def self.included(base)
- base.view 'app/assets/javascripts/vue_shared/components/gl_modal.vue' do
- element :modal_cancel_button
- element :modal_primary_button
- end
- end
-
- def confirm_modal_action
- click_element :modal_primary_button
- end
-
- def cancel_modal_action
- click_element :modal_cancel_button
- end
- end
- end
- end
-end
diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb
index 4ffc17cde92..2e7be1deb27 100644
--- a/qa/qa/page/project/show.rb
+++ b/qa/qa/page/project/show.rb
@@ -33,10 +33,6 @@ module QA
element :tree_holder, '.tree-holder'
end
- view 'app/presenters/project_presenter.rb' do
- element :new_file_button, "_('New file'),"
- end
-
view 'app/views/projects/buttons/_dropdown.html.haml' do
element :create_new_dropdown
element :new_file_option
diff --git a/qa/qa/page/project/web_ide/edit.rb b/qa/qa/page/project/web_ide/edit.rb
index fdfdd2fb3ea..23e580b81b6 100644
--- a/qa/qa/page/project/web_ide/edit.rb
+++ b/qa/qa/page/project/web_ide/edit.rb
@@ -40,12 +40,6 @@ module QA
end
end
- def create_new_file(full_file_path)
- click_element :new_file
- fill_element :full_file_path, full_file_path
- confirm_modal_action
- end
-
def create_new_file_from_template(file_name, template)
click_element :new_file
within_element(:template_list) do