diff options
author | tauriedavis <taurie@gitlab.com> | 2017-05-12 15:33:10 -0700 |
---|---|---|
committer | tauriedavis <taurie@gitlab.com> | 2017-06-02 13:00:21 -0700 |
commit | a9e0218cc5f8ee6309acb3121dd31397e17ef332 (patch) | |
tree | a87da318e6aa712aed412db8d3573f9f7dac776b /spec | |
parent | 1e8dbd46758d5c9772baf233ebcff889dc742d3d (diff) | |
download | gitlab-ce-a9e0218cc5f8ee6309acb3121dd31397e17ef332.tar.gz |
32118 Make New environment empty state btn lowercase32118-new-environment-btn-copy
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/environments/environments_spec.rb | 4 | ||||
-rw-r--r-- | spec/javascripts/environments/environment_spec.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb index cf393afccbb..31345403702 100644 --- a/spec/features/projects/environments/environments_spec.rb +++ b/spec/features/projects/environments/environments_spec.rb @@ -239,7 +239,9 @@ feature 'Environments page', :feature, :js do context 'when logged as developer' do before do - click_link 'New environment' + within(".top-area") do + click_link 'New environment' + end end context 'for valid name' do diff --git a/spec/javascripts/environments/environment_spec.js b/spec/javascripts/environments/environment_spec.js index 1c54cc3054c..c31642ac788 100644 --- a/spec/javascripts/environments/environment_spec.js +++ b/spec/javascripts/environments/environment_spec.js @@ -41,7 +41,7 @@ describe('Environment', () => { setTimeout(() => { expect( component.$el.querySelector('.js-new-environment-button').textContent, - ).toContain('New Environment'); + ).toContain('New environment'); expect( component.$el.querySelector('.js-blank-state-title').textContent, |