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-26 21:19:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-26 21:19:16 +0300
commitfa69a57b46f4893c488445f79d6d290463820f7d (patch)
tree4a73ccd1f8ffb4dbb47a42c6edb309238828a44e /spec/features/runners_spec.rb
parent34283a71d9ac31eb4da0b59d0b25fc2be014bc9c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/runners_spec.rb')
-rw-r--r--spec/features/runners_spec.rb17
1 files changed, 13 insertions, 4 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb
index 54482d141c7..2de95c21003 100644
--- a/spec/features/runners_spec.rb
+++ b/spec/features/runners_spec.rb
@@ -21,19 +21,28 @@ RSpec.describe 'Runners', feature_category: :runner_fleet do
project.add_maintainer(user)
end
- context 'when create_runner_workflow_for_namespace is enabled' do
+ context 'when create_runner_workflow_for_namespace is enabled', :js do
before do
stub_feature_flags(create_runner_workflow_for_namespace: [project.namespace])
- end
- it 'user can see a link with instructions on how to install GitLab Runner' do
visit project_runners_path(project)
+ end
+ it 'user can see a link with instructions on how to install GitLab Runner' do
expect(page).to have_link(s_('Runners|New project runner'), href: new_project_runner_path(project))
end
- describe 'runner registration', :js do
+ it_behaves_like "shows and resets runner registration token" do
+ let(:dropdown_text) { s_('Runners|Register a project runner') }
+ let(:registration_token) { project.runners_token }
+ end
+ end
+
+ context 'when user views new runner page' do
+ context 'when create_runner_workflow_for_namespace is enabled', :js do
before do
+ stub_feature_flags(create_runner_workflow_for_namespace: [project.namespace])
+
visit new_project_runner_path(project)
end