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-20 18:20:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-20 18:20:09 +0300
commitda23c5d563d68bfa5271b216209a7715c7ce3073 (patch)
treeea829aa79f715b98c440d6bf3767328b4fc4f750 /spec/features/runners_spec.rb
parent2366f969a4b3a95e052e551cc7283a2db8d5562e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/runners_spec.rb')
-rw-r--r--spec/features/runners_spec.rb30
1 files changed, 23 insertions, 7 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb
index b2ddf427c0d..cab6aac42e6 100644
--- a/spec/features/runners_spec.rb
+++ b/spec/features/runners_spec.rb
@@ -14,23 +14,39 @@ RSpec.describe 'Runners', feature_category: :runner_fleet do
stub_feature_flags(project_runners_vue_ui: false)
end
- context 'when user opens runners page' do
+ context 'when user views runners page' do
let(:project) { create(:project) }
before do
project.add_maintainer(user)
end
- it 'user can see a link with instructions on how to install GitLab Runner' do
- visit project_runners_path(project)
+ context 'when create_runner_workflow_for_namespace is enabled' do
+ before do
+ stub_feature_flags(create_runner_workflow_for_namespace: [project.namespace])
+ end
- expect(page).to have_link('Install GitLab Runner and ensure it\'s running.', href: "https://docs.gitlab.com/runner/install/")
+ it 'user can see a link with instructions on how to install GitLab Runner' do
+ visit project_runners_path(project)
+
+ expect(page).to have_link(s_('Runners|New project runner'), href: new_project_runner_path(project))
+ end
end
- describe 'runners registration token' do
- let!(:token) { project.runners_token }
+ context 'when create_runner_workflow_for_namespace is disabled' do
+ before do
+ stub_feature_flags(create_runner_workflow_for_namespace: false)
+ end
+
+ it 'user can see a link with instructions on how to install GitLab Runner' do
+ visit project_runners_path(project)
+
+ expect(page).to have_link('Install GitLab Runner and ensure it\'s running.', href: "https://docs.gitlab.com/runner/install/")
+ end
+
+ describe 'runners registration token' do
+ let!(:token) { project.runners_token }
- context 'when project_runners_vue_ui is disabled' do
before do
visit project_runners_path(project)
end