diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-18 17:33:57 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-06-04 17:20:48 +0200 |
commit | 2ae48f1ca910031a77550e1f85492d9786c3069e (patch) | |
tree | cc9c70d691e9f0158fb1e33759e5d3eff63ba4bd /qa/qa/page/project/settings/ci_cd.rb | |
parent | 8d2b4e02e50f4830f27ad91a0afa1676759fc426 (diff) | |
download | gitlab-ce-2ae48f1ca910031a77550e1f85492d9786c3069e.tar.gz |
Add QA integration test for full Auto DevOps flow
Diffstat (limited to 'qa/qa/page/project/settings/ci_cd.rb')
-rw-r--r-- | qa/qa/page/project/settings/ci_cd.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/qa/page/project/settings/ci_cd.rb b/qa/qa/page/project/settings/ci_cd.rb index 145c3d3ddfa..dfb71e0a9f0 100644 --- a/qa/qa/page/project/settings/ci_cd.rb +++ b/qa/qa/page/project/settings/ci_cd.rb @@ -8,6 +8,13 @@ module QA # rubocop:disable Naming/FileName view 'app/views/projects/settings/ci_cd/show.html.haml' do element :runners_settings, 'Runners settings' element :secret_variables, 'Variables' + element :auto_devops_section, 'Auto DevOps' + end + + view 'app/views/projects/settings/ci_cd/_autodevops_form.html.haml' do + element :enable_auto_devops_button, 'Enable Auto DevOps' + element :domain_input, 'Domain' + element :save_changes_button, "submit 'Save changes'" end def expand_runners_settings(&block) @@ -21,6 +28,14 @@ module QA # rubocop:disable Naming/FileName Settings::SecretVariables.perform(&block) end end + + def enable_auto_devops_with_domain(domain) + expand_section('Auto DevOps') do + choose 'Enable Auto DevOps' + fill_in 'Domain', with: domain + click_on 'Save changes' + end + end end end end |