Commit 6e4adbe4 authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky feature spec

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 146eef9f
......@@ -4,7 +4,7 @@ require "spec_helper"
describe "User deletes branch", :js do
set(:user) { create(:user) }
set(:project) { create(:project, :repository) }
let(:project) { create(:project, :repository) }
before do
project.add_developer(user)
......@@ -20,6 +20,8 @@ describe "User deletes branch", :js do
accept_alert { find(".btn-remove").click }
end
wait_for_requests
expect(page).to have_css(".js-branch-improve\\/awesome", visible: :hidden)
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