Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-11 15:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-11 15:09:05 +0300
commit28e90894e1e6f17320f5b1d2fff6fe736bf65dff (patch)
tree21d63bf124b6064eb1650acc3e2aabe6dbc99f58 /spec/features/admin
parenta48957b317edf23b1bcfc6df0c098a824eae86f4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/admin')
-rw-r--r--spec/features/admin/admin_runners_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb
index 6d775f1ebff..a07eb4036c2 100644
--- a/spec/features/admin/admin_runners_spec.rb
+++ b/spec/features/admin/admin_runners_spec.rb
@@ -511,6 +511,17 @@ RSpec.describe "Admin Runners", feature_category: :runner_fleet do
click_on 'How do I install GitLab Runner?'
expect(page.find('[data-testid="runner-platforms-drawer"]')).to have_content('gitlab-runner install')
end
+
+ it 'warns from leaving page without finishing registration' do
+ click_on s_('Runners|Go to runners page')
+
+ alert = page.driver.browser.switch_to.alert
+
+ expect(alert).not_to be_nil
+ alert.dismiss
+
+ expect(current_url).to match(register_admin_runner_path(Ci::Runner.last))
+ end
end
end