diff options
author | ddavison <ddavison@gitlab.com> | 2019-05-07 13:32:07 -0700 |
---|---|---|
committer | ddavison <ddavison@gitlab.com> | 2019-05-07 13:32:07 -0700 |
commit | 6429ef77fff7a47484c6b7b43ed7719e0357ee16 (patch) | |
tree | 888310ba279bb6e2923ce944c9486684fd18a7c8 | |
parent | 63cbaa5e8e2830d16f8a0a3d56d66202fdcd2653 (diff) | |
download | gitlab-ce-6429ef77fff7a47484c6b7b43ed7719e0357ee16.tar.gz |
Don't fabricate a default project for the CI/CD testdd-qa-api-delegation-project-cicd-vars
Convert 'user adds a CI variable' to a :smoke test
Adjust support for API and UI fabrication
Signed-off-by: ddavison <ddavison@gitlab.com>
-rw-r--r-- | qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb index 33f342edb08..561a8895329 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb @@ -3,15 +3,25 @@ module QA context 'Verify' do describe 'CI variable support' do - it 'user adds a CI variable' do + it 'user adds a CI variable', :smoke do Runtime::Browser.visit(:gitlab, Page::Main::Login) - Page::Main::Login.act { sign_in_using_credentials } + Page::Main::Login.perform(&:sign_in_using_credentials) + + project = Resource::Project.fabricate! do |project| + project.name = 'project-with-ci-variables' + project.description = 'project with CI variables' + end Resource::CiVariable.fabricate! do |resource| + resource.project = project resource.key = 'VARIABLE_KEY' resource.value = 'some_CI_variable' end + project.visit! + + Page::Project::Menu.perform(&:go_to_ci_cd_settings) + Page::Project::Settings::CICD.perform do |settings| settings.expand_ci_variables do |page| expect(page).to have_field(with: 'VARIABLE_KEY') |