Commit 8b080d57 authored by Walmyr Lima's avatar Walmyr Lima

De-quarantine end-to-end test

By passing to the `click_first_epic` method the page that will
render after it, which will validate for required elements
before moving on.
parent aa0f8807
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
# Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/29 context 'Plan' do
context 'Plan', :quarantine do
describe 'promote issue to epic' do describe 'promote issue to epic' do
let(:issue_title) { "My Awesome Issue #{SecureRandom.hex(8)}" } let(:issue_title) { "My Awesome Issue #{SecureRandom.hex(8)}" }
...@@ -31,7 +30,9 @@ module QA ...@@ -31,7 +30,9 @@ module QA
group.visit! group.visit!
QA::EE::Page::Group::Menu.perform(&:click_group_epics_link) QA::EE::Page::Group::Menu.perform(&:click_group_epics_link)
QA::EE::Page::Group::Epic::Index.perform(&:click_first_epic) QA::EE::Page::Group::Epic::Index.perform do |index|
index.click_first_epic(QA::EE::Page::Group::Epic::Show)
end
expect(page).to have_content(issue_title) expect(page).to have_content(issue_title)
expect(page).to have_content(/promoted from issue .* \(closed\)/) expect(page).to have_content(/promoted from issue .* \(closed\)/)
......
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