Commit 5dd144a3 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'eread/harmonize-capitalization-in-ui' into 'master'

Harmonize capitalization on cluster UI

See merge request gitlab-org/gitlab!21878
parents 12970a8a 5db34a3c
......@@ -9,11 +9,11 @@ module ClustersHelper
def create_new_cluster_label(provider: nil)
case provider
when 'aws'
s_('ClusterIntegration|Create new Cluster on EKS')
s_('ClusterIntegration|Create new cluster on EKS')
when 'gcp'
s_('ClusterIntegration|Create new Cluster on GKE')
s_('ClusterIntegration|Create new cluster on GKE')
else
s_('ClusterIntegration|Create new Cluster')
s_('ClusterIntegration|Create new cluster')
end
end
......
---
title: Harmonize capitalization on cluster UI
merge_request: 21878
author: Evan Read
type: other
......@@ -111,7 +111,7 @@ describe 'EE Clusters', :js do
context 'when user filled form with environment scope' do
before do
click_link 'Add Kubernetes cluster'
click_link 'Create new Cluster'
click_link 'Create new cluster'
click_link 'Google GKE'
sleep 2 # wait for ajax
......@@ -156,7 +156,7 @@ describe 'EE Clusters', :js do
context 'when user updates duplicated environment scope' do
before do
click_link 'Add Kubernetes cluster'
click_link 'Create new Cluster'
click_link 'Create new cluster'
click_link 'Google GKE'
sleep 2 # wait for ajax
......
......@@ -3790,13 +3790,13 @@ msgstr ""
msgid "ClusterIntegration|Create cluster on"
msgstr ""
msgid "ClusterIntegration|Create new Cluster"
msgid "ClusterIntegration|Create new cluster"
msgstr ""
msgid "ClusterIntegration|Create new Cluster on EKS"
msgid "ClusterIntegration|Create new cluster on EKS"
msgstr ""
msgid "ClusterIntegration|Create new Cluster on GKE"
msgid "ClusterIntegration|Create new cluster on GKE"
msgstr ""
msgid "ClusterIntegration|Creating Kubernetes cluster"
......
......@@ -22,7 +22,7 @@ describe 'Instance-level AWS EKS Cluster', :js do
end
it 'user sees a form to create an EKS cluster' do
expect(page).to have_content('Create new Cluster on EKS')
expect(page).to have_content('Create new cluster on EKS')
end
end
end
......
......@@ -28,7 +28,7 @@ describe 'Group AWS EKS Cluster', :js do
end
it 'user sees a form to create an EKS cluster' do
expect(page).to have_content('Create new Cluster on EKS')
expect(page).to have_content('Create new cluster on EKS')
end
end
end
......
......@@ -28,7 +28,7 @@ describe 'AWS EKS Cluster', :js do
end
it 'user sees a form to create an EKS cluster' do
expect(page).to have_content('Create new Cluster on EKS')
expect(page).to have_content('Create new cluster on EKS')
end
end
end
......
......@@ -29,7 +29,7 @@ describe 'Gcp Cluster', :js, :do_not_mock_admin_mode do
visit project_clusters_path(project)
click_link 'Add Kubernetes cluster'
click_link 'Create new Cluster'
click_link 'Create new cluster'
click_link 'Google GKE'
end
......
......@@ -54,7 +54,7 @@ describe 'Clusters', :js do
visit project_clusters_path(project)
click_link 'Add Kubernetes cluster'
click_link 'Create new Cluster'
click_link 'Create new cluster'
end
it 'user sees a link to create a GKE cluster' do
......
......@@ -37,25 +37,25 @@ describe ClustersHelper do
context 'GCP provider' do
let(:provider) { 'gcp' }
it { is_expected.to eq('Create new Cluster on GKE') }
it { is_expected.to eq('Create new cluster on GKE') }
end
context 'AWS provider' do
let(:provider) { 'aws' }
it { is_expected.to eq('Create new Cluster on EKS') }
it { is_expected.to eq('Create new cluster on EKS') }
end
context 'other provider' do
let(:provider) { 'other' }
it { is_expected.to eq('Create new Cluster') }
it { is_expected.to eq('Create new cluster') }
end
context 'no provider' do
let(:provider) { nil }
it { is_expected.to eq('Create new Cluster') }
it { is_expected.to eq('Create new cluster') }
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