Chrome 64 times out on spec/features/expand_collapse_diffs_spec.rb
Similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/43636, from https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/54494740:
Failures:
1) Expand and collapse diffs should show the diff content with a highlighted line when linking to line
Got 0 failures and 2 other errors:
1.1) Failure/Error: visit project_commit_path(project, project.commit(branch), anchor: "#{large_diff[:id]}_0_1")
Net::ReadTimeout:
Net::ReadTimeout
# ./spec/features/expand_collapse_diffs_spec.rb:41:in `block (2 levels) in <top (required)>'
1.2) Failure/Error: unless ['', 'about:blank', 'data:,'].include? Capybara.current_session.driver.browser.current_url
Net::ReadTimeout:
Net::ReadTimeout
# ./spec/support/capybara.rb:82:in `block (2 levels) in <top (required)>'
2) Expand and collapse diffs should show the diff content when linking to file
Got 0 failures and 2 other errors:
2.1) Failure/Error: visit project_commit_path(project, project.commit(branch), anchor: large_diff[:id])
Net::ReadTimeout:
Net::ReadTimeout
# ./spec/features/expand_collapse_diffs_spec.rb:55:in `block (2 levels) in <top (required)>'
2.2) Failure/Error: unless ['', 'about:blank', 'data:,'].include? Capybara.current_session.driver.browser.current_url
Net::ReadTimeout:
Net::ReadTimeout
# ./spec/support/capybara.rb:82:in `block (2 levels) in <top (required)>'
Finished in 47 minutes 28 seconds (files took 17.73 seconds to load)
1103 examples, 2 failures, 6 pending
Failed examples:
rspec ./spec/features/expand_collapse_diffs_spec.rb:37 # Expand and collapse diffs should show the diff content with a highlighted line when linking to line
rspec ./spec/features/expand_collapse_diffs_spec.rb:51 # Expand and collapse diffs should show the diff content when linking to file
I suspect the call to execute_script('window.location.reload()')
may be causing issues, but I haven't actually tested this theory.
/cc: @lbennett
Edited by Stan Hu