| ... | @@ -3,15 +3,25 @@ |
... | @@ -3,15 +3,25 @@ |
|
|
module QA
|
|
module QA
|
|
|
context 'Verify' do
|
|
context 'Verify' do
|
|
|
describe 'CI variable support' 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)
|
|
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::CiVariable.fabricate! do |resource|
|
|
|
|
resource.project = project
|
|
|
resource.key = 'VARIABLE_KEY'
|
|
resource.key = 'VARIABLE_KEY'
|
|
|
resource.value = 'some_CI_variable'
|
|
resource.value = 'some_CI_variable'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
project.visit!
|
|
|
|
|
|
|
|
Page::Project::Menu.perform(&:go_to_ci_cd_settings)
|
|
|
|
|
|
|
Page::Project::Settings::CICD.perform do |settings|
|
|
Page::Project::Settings::CICD.perform do |settings|
|
|
|
settings.expand_ci_variables do |page|
|
|
settings.expand_ci_variables do |page|
|
|
|
expect(page).to have_field(with: 'VARIABLE_KEY')
|
|
expect(page).to have_field(with: 'VARIABLE_KEY')
|
| ... | |
... | |
| ... | | ... | |