diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/features/clusters/cluster_detail_page_spec.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/features/clusters/cluster_detail_page_spec.rb')
-rw-r--r-- | spec/features/clusters/cluster_detail_page_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/clusters/cluster_detail_page_spec.rb b/spec/features/clusters/cluster_detail_page_spec.rb index 6058c35c2cf..4f7f62d00a5 100644 --- a/spec/features/clusters/cluster_detail_page_spec.rb +++ b/spec/features/clusters/cluster_detail_page_spec.rb @@ -20,7 +20,7 @@ RSpec.describe 'Clusterable > Show page' do expect(page).to have_content(cluster_type_label) end - it 'allow the user to set domain' do + it 'allow the user to set domain', :js do visit cluster_path within '.js-cluster-integration-form' do @@ -28,20 +28,19 @@ RSpec.describe 'Clusterable > Show page' do click_on 'Save changes' end - expect(page.status_code).to eq(200) expect(page).to have_content('Kubernetes cluster was successfully updated.') end - context 'when there is a cluster with ingress and external ip' do + context 'when there is a cluster with ingress and external ip', :js do before do cluster.create_application_ingress!(external_ip: '192.168.1.100') visit cluster_path end - it 'shows help text with the domain as an alternative to custom domain' do + it 'shows help text with the domain as an alternative to custom domain', :js do within '.js-cluster-integration-form' do - expect(find(cluster_ingress_help_text_selector)).not_to match_css(hide_modifier_selector) + expect(find(cluster_ingress_help_text_selector).text).to include('192.168.1.100') end end end @@ -51,7 +50,7 @@ RSpec.describe 'Clusterable > Show page' do visit cluster_path within '.js-cluster-integration-form' do - expect(find(cluster_ingress_help_text_selector)).to match_css(hide_modifier_selector) + expect(page).not_to have_selector(cluster_ingress_help_text_selector) end end end |