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-15 18:16:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-15 18:16:18 +0300
commit5e8d344de5658ace62c367fc19256488416cdc49 (patch)
tree5a54f9bdb0c0107d43e7d92181a753b908cfd173 /spec/features/admin
parent792ffb0daf235b6150f696fc1b5ea63fc9845b94 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/admin')
-rw-r--r--spec/features/admin/admin_runners_spec.rb28
1 files changed, 2 insertions, 26 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb
index a07eb4036c2..5703ab1eaff 100644
--- a/spec/features/admin/admin_runners_spec.rb
+++ b/spec/features/admin/admin_runners_spec.rb
@@ -496,32 +496,8 @@ RSpec.describe "Admin Runners", feature_category: :runner_fleet do
visit new_admin_runner_path
end
- context 'when runner is saved' do
- before do
- fill_in s_('Runners|Runner description'), with: 'runner-foo'
- fill_in s_('Runners|Tags'), with: 'tag1'
- click_on _('Submit')
- wait_for_requests
- end
-
- it 'navigates to registration page and opens install instructions drawer' do
- expect(page.find('[data-testid="alert-success"]')).to have_content(s_('Runners|Runner created.'))
- expect(current_url).to match(register_admin_runner_path(Ci::Runner.last))
-
- 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
+ it_behaves_like 'creates runner and shows register page' do
+ let(:register_path_pattern) { register_admin_runner_path('.*') }
end
end