Commit 37e32369 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '12613-transient-failure-in-user-deletes' into 'master'

Fix a flaky feature spec

Closes #12613

See merge request gitlab-org/gitlab!24278
parents 3f6a0167 6e4adbe4
...@@ -4,7 +4,7 @@ require "spec_helper" ...@@ -4,7 +4,7 @@ require "spec_helper"
describe "User deletes branch", :js do describe "User deletes branch", :js do
set(:user) { create(:user) } set(:user) { create(:user) }
set(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
before do before do
project.add_developer(user) project.add_developer(user)
...@@ -20,6 +20,8 @@ describe "User deletes branch", :js do ...@@ -20,6 +20,8 @@ describe "User deletes branch", :js do
accept_alert { find(".btn-remove").click } accept_alert { find(".btn-remove").click }
end end
wait_for_requests
expect(page).to have_css(".js-branch-improve\\/awesome", visible: :hidden) expect(page).to have_css(".js-branch-improve\\/awesome", visible: :hidden)
end end
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