Commit 1df93d54 authored by Thong Kuah's avatar Thong Kuah

Wait for requests before continuing

Otherwise async requests while logging in with admin mode will happen
while factory_bot fixtures are created, causing Rails to lock, and the
spec to hang.

See https://gitlab.com/gitlab-org/gitlab/-/issues/337039
parent 39baa197
......@@ -11,6 +11,8 @@ RSpec.describe "Admin Runners" do
admin = create(:admin)
sign_in(admin)
gitlab_enable_admin_mode_sign_in(admin)
wait_for_requests
end
describe "Runners page", :js 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