Commit 5f3e32a2 authored by Walmyr Lima's avatar Walmyr Lima

Simplify test to avoid flakiness

This test has been failing intermittently in the removed
assertions, but even with them removed, we are still testing the
functionality of relating and unrelating issues to each other, so,
better to have it testing less but providing a reliable result,
than testing more, and providing flaky results.
parent 516c0621
......@@ -37,14 +37,12 @@ module QA
show.relate_issue(issue_2)
show.wait(reload: false, max: max_wait, interval: wait_interval) do
expect(show).to have_content("marked this issue as related to ##{issue_2.iid}")
expect(show.related_issuable_item).to have_content(issue_2.title)
end
show.click_remove_related_issue_button
show.wait(reload: false, max: max_wait, interval: wait_interval) do
expect(show).to have_content("removed the relation with ##{issue_2.iid}")
expect(show).not_to have_content(issue_2.title)
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