From 5bd24a54ef4ce3a38a860eb53b66d062c2382971 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 17 Dec 2019 09:07:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/features/projects/clusters/gcp_spec.rb | 8 ++++---- spec/features/projects/clusters/user_spec.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'spec/features/projects/clusters') diff --git a/spec/features/projects/clusters/gcp_spec.rb b/spec/features/projects/clusters/gcp_spec.rb index 741f46cef45..7c8b2640e89 100644 --- a/spec/features/projects/clusters/gcp_spec.rb +++ b/spec/features/projects/clusters/gcp_spec.rb @@ -131,11 +131,11 @@ describe 'Gcp Cluster', :js, :do_not_mock_admin_mode do end end - context 'when user destroy the cluster' do + context 'when user destroys the cluster' do before do - page.accept_confirm do - click_link 'Remove integration' - end + click_button 'Remove integration and resources' + fill_in 'confirm_cluster_name_input', with: cluster.name + click_button 'Remove integration' end it 'user sees creation form with the successful message' do diff --git a/spec/features/projects/clusters/user_spec.rb b/spec/features/projects/clusters/user_spec.rb index bdaeda83926..38efcf758e1 100644 --- a/spec/features/projects/clusters/user_spec.rb +++ b/spec/features/projects/clusters/user_spec.rb @@ -101,11 +101,11 @@ describe 'User Cluster', :js do end end - context 'when user destroy the cluster' do + context 'when user destroys the cluster' do before do - page.accept_confirm do - click_link 'Remove integration' - end + click_button 'Remove integration and resources' + fill_in 'confirm_cluster_name_input', with: cluster.name + click_button 'Remove integration' end it 'user sees creation form with the successful message' do -- cgit v1.2.1