Commit ffed8986 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 1df93d54
......@@ -13,6 +13,8 @@ RSpec.describe 'Expand and collapse diffs', :js do
sign_in(admin)
gitlab_enable_admin_mode_sign_in(admin)
wait_for_requests
# Ensure that undiffable.md is in .gitattributes
project.repository.copy_gitattributes(branch)
visit project_commit_path(project, project.commit(branch))
......
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