summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-10-17 12:04:43 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-10-17 12:04:43 +0000
commitd32ac958ddb76290cf32759952907b1b67cfd440 (patch)
treef3858f3a8c9f5344e45ae58083e7a2b6e44360a4 /spec
parent639df4a1464ddd43506fac0afe6cdea61e875adc (diff)
parentea75b72710d8fdbeaab89d5cb9fbf8f9ea7a83cd (diff)
downloadgitlab-ce-d32ac958ddb76290cf32759952907b1b67cfd440.tar.gz
Merge branch 'gt-update-environments-empty-state' into 'master'
Update environments empty state See merge request gitlab-org/gitlab-ce!22297
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/environments/environments_spec.rb2
-rw-r--r--spec/javascripts/environments/emtpy_state_spec.js4
-rw-r--r--spec/javascripts/environments/environments_app_spec.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb
index f0890018286..917ba495f01 100644
--- a/spec/features/projects/environments/environments_spec.rb
+++ b/spec/features/projects/environments/environments_spec.rb
@@ -95,7 +95,7 @@ describe 'Environments page', :js do
end
it 'does not show environments and counters are set to zero' do
- expect(page).to have_content('You don\'t have any environments right now.')
+ expect(page).to have_content('You don\'t have any environments right now')
expect(page.find('.js-environments-tab-available .badge').text).to eq('0')
expect(page.find('.js-environments-tab-stopped .badge').text).to eq('0')
diff --git a/spec/javascripts/environments/emtpy_state_spec.js b/spec/javascripts/environments/emtpy_state_spec.js
index 10a19af4175..d71dfe8197e 100644
--- a/spec/javascripts/environments/emtpy_state_spec.js
+++ b/spec/javascripts/environments/emtpy_state_spec.js
@@ -27,7 +27,7 @@ describe('environments empty state', () => {
it('renders empty state and new environment button', () => {
expect(
vm.$el.querySelector('.js-blank-state-title').textContent.trim(),
- ).toEqual('You don\'t have any environments right now.');
+ ).toEqual('You don\'t have any environments right now');
expect(
vm.$el.querySelector('.js-new-environment-button').getAttribute('href'),
@@ -47,7 +47,7 @@ describe('environments empty state', () => {
it('renders empty state without new button', () => {
expect(
vm.$el.querySelector('.js-blank-state-title').textContent.trim(),
- ).toEqual('You don\'t have any environments right now.');
+ ).toEqual('You don\'t have any environments right now');
expect(
vm.$el.querySelector('.js-new-environment-button'),
diff --git a/spec/javascripts/environments/environments_app_spec.js b/spec/javascripts/environments/environments_app_spec.js
index 1be983f3592..7edc0ccac0b 100644
--- a/spec/javascripts/environments/environments_app_spec.js
+++ b/spec/javascripts/environments/environments_app_spec.js
@@ -50,7 +50,7 @@ describe('Environment', () => {
expect(
component.$el.querySelector('.js-blank-state-title').textContent,
- ).toContain('You don\'t have any environments right now.');
+ ).toContain('You don\'t have any environments right now');
});
});
@@ -127,7 +127,7 @@ describe('Environment', () => {
it('should render empty state', () => {
expect(
component.$el.querySelector('.js-blank-state-title').textContent,
- ).toContain('You don\'t have any environments right now.');
+ ).toContain('You don\'t have any environments right now');
});
});