summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-04-04 21:02:57 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-04-04 21:02:57 +0100
commit6910c908073732030ce4f7cf91545256428c2b5f (patch)
tree38185ce1e4445da253261ad4c91b5e799c81a513
parent4dd841c95aea291544bf69e796a757ba82f06a77 (diff)
downloadgitlab-ce-6910c908073732030ce4f7cf91545256428c2b5f.tar.gz
Backport changes of ee fix for transient failure in environments spec
-rw-r--r--spec/features/projects/environments/environments_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb
index 92a8abdca7b..cf393afccbb 100644
--- a/spec/features/projects/environments/environments_spec.rb
+++ b/spec/features/projects/environments/environments_spec.rb
@@ -30,6 +30,7 @@ feature 'Environments page', :feature, :js do
describe 'in available tab page' do
it 'should show one environment' do
visit namespace_project_environments_path(project.namespace, project, scope: 'available')
+ expect(page).to have_css('.environments-container')
expect(page.all('tbody > tr').length).to eq(1)
end
end
@@ -37,6 +38,7 @@ feature 'Environments page', :feature, :js do
describe 'in stopped tab page' do
it 'should show no environments' do
visit namespace_project_environments_path(project.namespace, project, scope: 'stopped')
+ expect(page).to have_css('.environments-container')
expect(page).to have_content('You don\'t have any environments right now')
end
end
@@ -48,6 +50,7 @@ feature 'Environments page', :feature, :js do
describe 'in available tab page' do
it 'should show no environments' do
visit namespace_project_environments_path(project.namespace, project, scope: 'available')
+ expect(page).to have_css('.environments-container')
expect(page).to have_content('You don\'t have any environments right now')
end
end
@@ -55,6 +58,7 @@ feature 'Environments page', :feature, :js do
describe 'in stopped tab page' do
it 'should show one environment' do
visit namespace_project_environments_path(project.namespace, project, scope: 'stopped')
+ expect(page).to have_css('.environments-container')
expect(page.all('tbody > tr').length).to eq(1)
end
end