From 3814e890acbacfbd886b8af4bf2a0b5e3a8adc65 Mon Sep 17 00:00:00 2001 From: Tomislav Nikic Date: Wed, 24 Jul 2019 11:28:20 +0200 Subject: Renaming wrongfully named file Renaming to the right name used in EE to make the test green again. --- qa/qa/page/search/result.rb | 33 --------------------------------- qa/qa/page/search/results.rb | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 qa/qa/page/search/result.rb create mode 100644 qa/qa/page/search/results.rb diff --git a/qa/qa/page/search/result.rb b/qa/qa/page/search/result.rb deleted file mode 100644 index b9b18abf660..00000000000 --- a/qa/qa/page/search/result.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module QA::Page - module Search - class Results < QA::Page::Base - view 'app/views/search/_category.html.haml' do - element :code_tab - end - - view 'app/views/search/results/_blob_data.html.haml' do - element :result_item_content - element :file_title_content - element :file_text_content - end - - def switch_to_code - click_element(:code_tab) - end - - def has_file_in_project?(file_name, project_name) - has_element? :result_item_content, text: "#{project_name}: #{file_name}" - end - - def has_file_with_content?(file_name, file_text) - within_element_by_index :result_item_content, 0 do - false unless has_element? :file_title_content, text: file_name - - has_element? :file_text_content, text: file_text - end - end - end - end -end diff --git a/qa/qa/page/search/results.rb b/qa/qa/page/search/results.rb new file mode 100644 index 00000000000..b9b18abf660 --- /dev/null +++ b/qa/qa/page/search/results.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true + +module QA::Page + module Search + class Results < QA::Page::Base + view 'app/views/search/_category.html.haml' do + element :code_tab + end + + view 'app/views/search/results/_blob_data.html.haml' do + element :result_item_content + element :file_title_content + element :file_text_content + end + + def switch_to_code + click_element(:code_tab) + end + + def has_file_in_project?(file_name, project_name) + has_element? :result_item_content, text: "#{project_name}: #{file_name}" + end + + def has_file_with_content?(file_name, file_text) + within_element_by_index :result_item_content, 0 do + false unless has_element? :file_title_content, text: file_name + + has_element? :file_text_content, text: file_text + end + end + end + end +end -- cgit v1.2.1