Commit 6f5e9155 authored by Rémy Coutable's avatar Rémy Coutable

Remove 'QA::Page::Project::Milestone::Show' which wasn't used

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent aa175994
...@@ -259,7 +259,6 @@ module QA ...@@ -259,7 +259,6 @@ module QA
module Milestone module Milestone
autoload :New, 'qa/page/project/milestone/new' autoload :New, 'qa/page/project/milestone/new'
autoload :Index, 'qa/page/project/milestone/index' autoload :Index, 'qa/page/project/milestone/index'
autoload :Show, 'qa/page/project/milestone/show'
end end
module Operations module Operations
......
...@@ -5,9 +5,7 @@ module QA ...@@ -5,9 +5,7 @@ module QA
module Page module Page
module Project module Project
module Milestone module Milestone
module Show class Show < ::QA::Page::Base
def self.prepended(page)
page.module_eval do
view 'ee/app/views/shared/milestones/_burndown.html.haml' do view 'ee/app/views/shared/milestones/_burndown.html.haml' do
element :burndown_chart element :burndown_chart
element :weight_button element :weight_button
...@@ -16,8 +14,6 @@ module QA ...@@ -16,8 +14,6 @@ module QA
view 'ee/app/views/shared/milestones/_weight.html.haml' do view 'ee/app/views/shared/milestones/_weight.html.haml' do
element :total_issue_weight_value element :total_issue_weight_value
end end
end
end
def click_weight_button def click_weight_button
click_element(:weight_button) click_element(:weight_button)
......
# frozen_string_literal: true
module QA
module Page
module Project
module Milestone
class Show < Page::Base
end
end
end
end
end
QA::Page::Project::Milestone::Show.prepend_if_ee('QA::EE::Page::Project::Milestone::Show')
...@@ -33,7 +33,7 @@ module QA ...@@ -33,7 +33,7 @@ module QA
it 'shows burndown chart on milestone page' do it 'shows burndown chart on milestone page' do
milestone.visit! milestone.visit!
Page::Project::Milestone::Show.perform do |show| QA::EE::Page::Project::Milestone::Show.perform do |show|
expect(show.burndown_chart).to be_visible expect(show.burndown_chart).to be_visible
expect(show.burndown_chart).to have_content("Open issues") expect(show.burndown_chart).to have_content("Open issues")
......
...@@ -41,7 +41,7 @@ module QA ...@@ -41,7 +41,7 @@ module QA
show.click_milestone_link show.click_milestone_link
end end
Page::Project::Milestone::Show.perform do |show| QA::EE::Page::Project::Milestone::Show.perform do |show|
expect(show.total_issue_weight_value).to have_content(weight) expect(show.total_issue_weight_value).to have_content(weight)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment