Commit fcc7d5c0 authored by Stan Hu's avatar Stan Hu

Merge branch 'improve-flaky-test' into 'master'

Improve a flaky test that relied on a flash notice

See merge request gitlab-org/gitlab!60831
parents 91f2a41c 8261dd41
......@@ -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