diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-09 14:59:56 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-09 14:59:56 +0000 |
commit | 8b1212ed6d9869d93b33a85149eef19a69c6842f (patch) | |
tree | e81b428e006a3e06b66affd658e75f418581875d /spec/features | |
parent | aa958abae01a0744f398b7b4691515d636393af7 (diff) | |
parent | b054694e497d58302f9cbfd134e84f5304b68e27 (diff) | |
download | gitlab-ce-8b1212ed6d9869d93b33a85149eef19a69c6842f.tar.gz |
Merge branch '34758-group-cluster-controller' into 'master'
User can create a group level cluster and install applications
See merge request gitlab-org/gitlab-ce!22450
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/clusters_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb index f13c35c00d3..a85e7333ba8 100644 --- a/spec/features/projects/clusters_spec.rb +++ b/spec/features/projects/clusters_spec.rb @@ -35,37 +35,6 @@ describe 'Clusters', :js do expect(page).to have_selector('.gl-responsive-table-row', count: 2) end - context 'inline update of cluster' do - it 'user can update cluster' do - expect(page).to have_selector('.js-project-feature-toggle') - end - - context 'with successful request' do - it 'user sees updated cluster' do - expect do - page.find('.js-project-feature-toggle').click - wait_for_requests - end.to change { cluster.reload.enabled } - - expect(page).not_to have_selector('.is-checked') - expect(cluster.reload).not_to be_enabled - end - end - - context 'with failed request' do - it 'user sees not update cluster and error message' do - expect_any_instance_of(Clusters::UpdateService).to receive(:execute).and_call_original - allow_any_instance_of(Clusters::Cluster).to receive(:valid?) { false } - - page.find('.js-project-feature-toggle').click - - expect(page).to have_content('Something went wrong on our end.') - expect(page).to have_selector('.is-checked') - expect(cluster.reload).to be_enabled - end - end - end - context 'when user clicks on a cluster' do before do click_link cluster.name |