Commit 957f4c65 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rename "Kubernetes configured" button

To make project buttons fit in one row it was decided to shorten the
text of the button from "Kubernetes configured" to "Kubernetes"
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a5c0130e
...@@ -302,7 +302,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated ...@@ -302,7 +302,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
cluster_link = clusters.count == 1 ? project_cluster_path(project, clusters.first) : project_clusters_path(project) cluster_link = clusters.count == 1 ? project_cluster_path(project, clusters.first) : project_clusters_path(project)
AnchorData.new(false, AnchorData.new(false,
_('Kubernetes configured'), _('Kubernetes'),
cluster_link, cluster_link,
'default') 'default')
end end
......
---
title: Rename 'Kubernetes configured' button
merge_request: 24487
author:
type: changed
...@@ -24,7 +24,7 @@ describe 'Project show page', :feature do ...@@ -24,7 +24,7 @@ describe 'Project show page', :feature do
visit project_path(project) visit project_path(project)
page.within('.project-buttons') do page.within('.project-buttons') do
expect(page).to have_link('Kubernetes configured', href: project_clusters_path(project)) expect(page).to have_link('Kubernetes', href: project_clusters_path(project))
end end
end end
end end
......
...@@ -10879,9 +10879,6 @@ msgstr "" ...@@ -10879,9 +10879,6 @@ msgstr ""
msgid "Kubernetes cluster was successfully updated." msgid "Kubernetes cluster was successfully updated."
msgstr "" msgstr ""
msgid "Kubernetes configured"
msgstr ""
msgid "Kubernetes deployment not found" msgid "Kubernetes deployment not found"
msgstr "" msgstr ""
......
...@@ -33,7 +33,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do ...@@ -33,7 +33,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do
expect(page).not_to have_link('Enable Auto DevOps') expect(page).not_to have_link('Enable Auto DevOps')
expect(page).not_to have_link('Auto DevOps enabled') expect(page).not_to have_link('Auto DevOps enabled')
expect(page).not_to have_link('Add Kubernetes cluster') expect(page).not_to have_link('Add Kubernetes cluster')
expect(page).not_to have_link('Kubernetes configured') expect(page).not_to have_link('Kubernetes')
end end
end end
end end
...@@ -100,7 +100,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do ...@@ -100,7 +100,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do
it 'no Kubernetes cluster button if can not manage clusters' do it 'no Kubernetes cluster button if can not manage clusters' do
page.within('.project-buttons') do page.within('.project-buttons') do
expect(page).not_to have_link('Add Kubernetes cluster') expect(page).not_to have_link('Add Kubernetes cluster')
expect(page).not_to have_link('Kubernetes configured') expect(page).not_to have_link('Kubernetes')
end end
end end
end end
...@@ -308,7 +308,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do ...@@ -308,7 +308,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do
visit project_path(project) visit project_path(project)
page.within('.project-buttons') do page.within('.project-buttons') do
expect(page).to have_link('Kubernetes configured', href: project_cluster_path(project, cluster)) expect(page).to have_link('Kubernetes', href: project_cluster_path(project, cluster))
end end
end end
end end
......
...@@ -467,7 +467,7 @@ describe ProjectPresenter do ...@@ -467,7 +467,7 @@ describe ProjectPresenter do
expect(presenter.kubernetes_cluster_anchor_data).to have_attributes( expect(presenter.kubernetes_cluster_anchor_data).to have_attributes(
is_link: false, is_link: false,
label: a_string_including('Kubernetes configured'), label: a_string_including('Kubernetes'),
link: presenter.project_cluster_path(project, cluster) link: presenter.project_cluster_path(project, cluster)
) )
end end
...@@ -480,7 +480,7 @@ describe ProjectPresenter do ...@@ -480,7 +480,7 @@ describe ProjectPresenter do
expect(presenter.kubernetes_cluster_anchor_data).to have_attributes( expect(presenter.kubernetes_cluster_anchor_data).to have_attributes(
is_link: false, is_link: false,
label: a_string_including('Kubernetes configured'), label: a_string_including('Kubernetes'),
link: presenter.project_clusters_path(project) link: presenter.project_clusters_path(project)
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment