diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-22 10:23:02 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-22 10:23:02 +0300 |
commit | f6772ffb1a35adced2b8f70fb02de77985a363ef (patch) | |
tree | bce729b699133cb51fac26c93a5d890f7ab1f9f5 /spec/features | |
parent | 9618f419f28efd731767d4319d1ba4c958a4cb45 (diff) | |
parent | 19997ac701be035bd2054b22a756a7a74547599a (diff) |
Merge branch '57357-automate-base-domain-help-text' into 'master'
Automate base domain help text on Clusters page
Closes #57357
See merge request gitlab-org/gitlab-ce!26124
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 |