From 9fb1df8f9781ea5f1c5db71ef4baeabc9b369528 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Fri, 2 Aug 2019 20:08:53 +0000 Subject: Hide cluster details until cluster is created Only display the details of the cluster page when the cluster exists. If it is in "creating" state, show a message and a spinner --- spec/features/projects/clusters/applications_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'spec/features/projects/clusters') diff --git a/spec/features/projects/clusters/applications_spec.rb b/spec/features/projects/clusters/applications_spec.rb index 217bf1f5506..8cfd23d16df 100644 --- a/spec/features/projects/clusters/applications_spec.rb +++ b/spec/features/projects/clusters/applications_spec.rb @@ -22,9 +22,8 @@ describe 'Clusters Applications', :js do let(:cluster) { create(:cluster, :providing_by_gcp, projects: [project]) } it 'user is unable to install applications' do - page.within('.js-cluster-application-row-helm') do - expect(page).to have_css('.js-cluster-application-install-button[disabled]', exact_text: 'Install') - end + expect(page).not_to have_css('.js-cluster-application-row-helm') + expect(page).not_to have_css('.js-cluster-application-install-button') end end -- cgit v1.2.1