diff options
author | Enrique Alcantara <ealcantara@gitlab.com> | 2019-03-18 10:26:50 -0400 |
---|---|---|
committer | Enrique Alcantara <ealcantara@gitlab.com> | 2019-03-21 11:25:10 -0400 |
commit | ca13500a71c4f80d0c837c4e07df511988fc3907 (patch) | |
tree | 2bed911e8a414de8e0c9d742b45f8213d2f423db /spec/features | |
parent | 4ac994650e650ba2ed07a6c3fdc13a0e6008eed4 (diff) | |
download | gitlab-ce-ca13500a71c4f80d0c837c4e07df511988fc3907.tar.gz |
Hide/show ingress external ip help text
Use not_to instead of to__not
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/clusters/cluster_detail_page_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/clusters/cluster_detail_page_spec.rb b/spec/features/clusters/cluster_detail_page_spec.rb index 0a9c4bcaf12..b9fc52d0dce 100644 --- a/spec/features/clusters/cluster_detail_page_spec.rb +++ b/spec/features/clusters/cluster_detail_page_spec.rb @@ -4,6 +4,8 @@ require 'spec_helper' describe 'Clusterable > Show page' do let(:current_user) { create(:user) } + let(:cluster_ingress_help_text_selector) { '.js-ingress-domain-help-text' } + let(:hide_modifier_selector) { '.hide' } before do sign_in(current_user) @@ -35,7 +37,7 @@ describe 'Clusterable > Show page' do it 'shows help text with the domain as an alternative to custom domain' do within '#cluster-integration' do - expect(page).to have_content('Alternatively 192.168.1.100.nip.io can be used instead of a custom domain') + expect(find(cluster_ingress_help_text_selector)).not_to match_css(hide_modifier_selector) end end end @@ -45,7 +47,7 @@ describe 'Clusterable > Show page' do visit cluster_path within '#cluster-integration' do - expect(page).not_to have_content('can be used instead of a custom domain.') + expect(find(cluster_ingress_help_text_selector)).to match_css(hide_modifier_selector) end end end |