Skip to content
Snippets Groups Projects
Verified Commit 6f278be8 authored by Dan Davison's avatar Dan Davison Committed by GitLab
Browse files

Merge branch '513855-fix-flaky-e2e-deprecated-unregister-runner-test' into 'master'

Refresh the page after unregistering a runner

See merge request !181224



Merged-by: default avatarDan Davison <ddavison@gitlab.com>
Approved-by: default avatarJoy Roodnick <jroodnick@gitlab.com>
Approved-by: default avatarDan Davison <ddavison@gitlab.com>
Reviewed-by: default avatarDan Davison <ddavison@gitlab.com>
Co-authored-by: default avatarRémy Coutable <remy@rymai.me>
parents f2b33c59 6116edec
No related branches found
No related tags found
3 merge requests!181325Fix ambiguous `created_at` in project.rb,!181224Refresh the page after unregistering a runner,!180727Resolve "Extend job archival mechanism to the whole pipeline"
Pipeline #1668245864 passed
......@@ -53,7 +53,9 @@ def has_runner_with_expected_tags?(runner)
end
def has_no_runner?(runner)
has_no_element?("runner-row-#{runner.id}")
retry_until(reload: true, sleep_interval: 2, max_attempts: 6, message: "Retry for runner removal") do
has_no_element?("runner-row-#{runner.id}")
end
end
def go_to_runner_managers_page(runner)
......
......@@ -28,8 +28,7 @@ module QA
runner.unregister!
Page::Group::Runners::Index.perform do |group_runners|
group_runners.refresh
expect { group_runners.has_no_runner?(runner) }.to eventually_be(true).within(sleep_interval: 2)
expect(group_runners.has_no_runner?(runner)).to be(true)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment