Merge branch '32118-new-environment-btn-copy' into 'master'

32118 Make New environment empty state btn lowercase

Closes #32118

See merge request !11350
This commit is contained in:
Annabel Dunstone Gray 2017-06-03 17:33:27 +00:00
commit 39340e428e
4 changed files with 9 additions and 3 deletions

View file

@ -255,7 +255,7 @@ export default {
v-if="canCreateEnvironmentParsed"
:href="newEnvironmentPath"
class="btn btn-create js-new-environment-button">
New Environment
New environment
</a>
</div>

View file

@ -0,0 +1,4 @@
---
title: Make New environment empty state btn lowercase
merge_request:
author:

View file

@ -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

View file

@ -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,