From 95364067d52bf65b92ace67c8ad6f217aae2c97e Mon Sep 17 00:00:00 2001 From: Mark Lapierre Date: Wed, 3 Oct 2018 09:55:00 -0400 Subject: Remove ModalDialog and other unused code --- qa/qa.rb | 1 - qa/qa/page/component/modal_dialog.rb | 24 ------------------------ qa/qa/page/project/show.rb | 4 ---- qa/qa/page/project/web_ide/edit.rb | 6 ------ 4 files changed, 35 deletions(-) delete mode 100644 qa/qa/page/component/modal_dialog.rb 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 -- cgit v1.2.1