Commit 8261dd41 authored by Rémy Coutable's avatar Rémy Coutable

Improve a flaky test that relied on a flash notice

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 56ffa163
......@@ -28,7 +28,9 @@ RSpec.describe 'User changes public project visibility', :js do
click_button 'Reduce project visibility'
end
expect(page).to have_text("Project '#{project.name}' was successfully updated")
wait_for_requests
expect(project.reload).to be_private
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