summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/operations
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-02-15 01:24:33 +0000
committerDylan Griffith <dyl.griffith@gmail.com>2019-02-15 13:37:37 -0600
commit4a7948ea2ef1836f5b823b1b97d6ae0e8867e9ac (patch)
tree15046448337e25b93a1f97faa33cc8010cf9d4ed /qa/qa/page/project/operations
parente2a56bd1ae6af4166db108eca4455530d98f6aa8 (diff)
downloadgitlab-ce-4a7948ea2ef1836f5b823b1b97d6ae0e8867e9ac.tar.gz
Fix setting domain in QA Auto DevOps specs
The domain name setting was not doing anything (as far as I could tell). Now we set the input and save the form. This was a regression introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24580/diffs
Diffstat (limited to 'qa/qa/page/project/operations')
-rw-r--r--qa/qa/page/project/operations/kubernetes/show.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/qa/qa/page/project/operations/kubernetes/show.rb b/qa/qa/page/project/operations/kubernetes/show.rb
index 98ac5c32d91..d4e1679b6bf 100644
--- a/qa/qa/page/project/operations/kubernetes/show.rb
+++ b/qa/qa/page/project/operations/kubernetes/show.rb
@@ -14,6 +14,11 @@ module QA
element :ingress_ip_address, 'id="ingress-ip-address"' # rubocop:disable QA/ElementWithPattern
end
+ view 'app/views/clusters/clusters/_form.html.haml' do
+ element :base_domain
+ element :save_domain
+ end
+
def install!(application_name)
within(".js-cluster-application-row-#{application_name}") do
page.has_button?('Install', wait: 30)
@@ -32,6 +37,14 @@ module QA
# ip address is assigned for the ingress controller
page.find('#ingress-ip-address', wait: 1200).value
end
+
+ def set_domain(domain)
+ fill_element :base_domain, domain
+ end
+
+ def save_domain
+ click_element :save_domain
+ end
end
end
end