Commit 887a26f2 authored by richard.chong's avatar richard.chong

Ensures merge train was started before attempting to cancel

parent cf327555
...@@ -124,6 +124,10 @@ module QA ...@@ -124,6 +124,10 @@ module QA
it 'does not create a TODO task', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1884' do it 'does not create a TODO task', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1884' do
# Manually removes merge request from the train # Manually removes merge request from the train
Page::MergeRequest::Show.perform do |show| Page::MergeRequest::Show.perform do |show|
show.wait_until(reload: false) do
show.has_content? 'started a merge train'
end
show.cancel_auto_merge! show.cancel_auto_merge!
expect(show).to have_system_note('removed this merge request from the merge train') expect(show).to have_system_note('removed this merge request from the merge train')
......
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