fix race condition when visiting file blob of recently triggered file upload

This commit is contained in:
Mike Greiling 2017-10-10 00:27:21 -05:00
parent 56025c7e6b
commit 31c8fb987d
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 3 additions and 2 deletions

View File

@ -175,10 +175,11 @@ describe 'User browses files' do
page.within('#modal-upload-blob') do
fill_in(:commit_message, with: 'New commit message')
fill_in(:branch_name, with: 'new_branch_name', visible: true)
click_button('Upload file')
end
fill_in(:branch_name, with: 'new_branch_name', visible: true)
click_button('Upload file')
block_and_wait_for_requests_complete
visit(project_blob_path(project, 'new_branch_name/logo_sample.svg'))