Commit a9e5a731 authored by Stan Hu's avatar Stan Hu

Add a wait_for_ajax call to prevent Spinach failure

There may be a race condition after a user clicks "Rebase" and when
the DatabaseCleaner wipes all data.

See https://gitlab.com/gitlab-org/gitlab-ee/builds/5302296
parent 2b252c9a
...@@ -7,6 +7,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -7,6 +7,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
include SharedMarkdown include SharedMarkdown
include SharedDiffNote include SharedDiffNote
include SharedUser include SharedUser
include WaitForAjax
step 'project "Shop" have "Bug NS-05" open merge request with diffs inside' do step 'project "Shop" have "Bug NS-05" open merge request with diffs inside' do
create(:merge_request_with_diffs, create(:merge_request_with_diffs,
...@@ -73,6 +74,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -73,6 +74,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
step 'I press rebase button' do step 'I press rebase button' do
click_button "Rebase" click_button "Rebase"
wait_for_ajax
end end
step "I should see rebase in progress message" do step "I should see rebase in progress message" do
......
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