Commit 79793dd1 authored by Tim Zallmann's avatar Tim Zallmann

Due to more async loading the tests could fail, trying to fix it with wait_for_requests

parent cad80263
...@@ -87,6 +87,8 @@ describe 'User browses files' do ...@@ -87,6 +87,8 @@ describe 'User browses files' do
visit(project_tree_path(project, "'test'")) visit(project_tree_path(project, "'test'"))
wait_for_requests
expect(page).to have_css('.tree-commit-link', visible: true) expect(page).to have_css('.tree-commit-link', visible: true)
expect(page).not_to have_content('Loading commit data...') expect(page).not_to have_content('Loading commit data...')
end end
...@@ -100,6 +102,8 @@ describe 'User browses files' do ...@@ -100,6 +102,8 @@ describe 'User browses files' do
visit(project_tree_path(project, 'fix/.testdir')) visit(project_tree_path(project, 'fix/.testdir'))
wait_for_requests
expect(page).to have_css('.tree-commit-link', visible: true) expect(page).to have_css('.tree-commit-link', visible: true)
expect(page).not_to have_content('Loading commit data...') expect(page).not_to have_content('Loading commit data...')
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