Commit 83b0fe93 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'fix-rebase-in-progress-spinach-failure' into 'master'

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

See merge request !810
parents 1fb55248 a9e5a731
...@@ -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