Commit 2e67fac4 authored by Mark Lapierre's avatar Mark Lapierre

Wait for repo contents to load async

parent f0af5388
......@@ -37,7 +37,7 @@ module QA
target_project.visit!
Page::Project::Show.perform do |project|
expect(project).to have_content('README.md')
expect { project.has_file?('README.md') }.to eventually_be_truthy.within(max_duration: 60), "Expected a file named README.md but it did not appear."
expect(project).to have_content('This is a test project')
end
end
......
......@@ -37,7 +37,7 @@ module QA
target_project.visit!
Page::Project::Show.perform do |project|
expect(project).to have_file('README.md')
expect { project.has_file?('README.md') }.to eventually_be_truthy.within(max_duration: 60), "Expected a file named README.md but it did not appear."
expect(project).to have_readme_content('This is a pull mirroring test project')
expect(project).to have_text("Mirrored from #{masked_url(source_project_uri)}")
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