Transient failure in ee/browser_ui/1_manage/project/project_templates_spec | expected to find text "file.txt" in "Skip to content...
Summary
https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/771916352
Not quite the same as the other failures reported for the same spec file.
Stack trace
1) Manage Project templates instance level successfully imports the project using template
Failure/Error: expect(page).to have_content(file[:name])
expected to find text "file.txt" in "Skip to content GitLab Projects Groups More 1 1 Help P Project using instance level project template 78f3df056dafda30 Project overview Details Activity Releases Repository Issues 0 Merge Requests 0 Requirements CI / CD Security & Compliance Operations Packages & Registries Analytics Wiki Snippets Members Settings Collapse sidebar You won't be able to pull or push project code via SSH until you add an SSH key to your profile Add SSH key Don't show again gitlab-qa-sandbox-group qa-test-2020-10-04-22-02-22-f0af7d0824a23902 Project using instance level project template 78f3df056dafda30 Details The project was successfully imported. P Project using instance level project template 78f3df056dafda30 Project ID: 20 Leave project Star 0 Fork 0 1 Commit 1 Branch 0 Tags 287 KB Files 502 KB Storage Project using instance level project template master project-using-instance-level-project-template-78f3df056dafda30 Add to tree History Find file Web IDE Select Archive Format Clone Add test files GitLab QA authored 1 minute ago f26e55be README Add LICENSE Add CHANGELOG Add CONTRIBUTING Enable Auto DevOps Add Kubernetes cluster Set up CI/CD Name Last commit Last update"
# ./qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb:109:in `block (5 levels) in <module:QA>'
# ./qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb:108:in `each'
# ./qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb:108:in `block (4 levels) in <module:QA>'
Screenshot / HTML page
Looks like the list of files hasn't loaded fully yet:
manage_project_templates_instance_level_successfully_imports_the_project_using_template.html
Possible fixes
Use a page-specific selector instead of have_content
. have_file
will wait for loading to complete and has the extra benefit of confirming that the file name appears in the correct place.