Welcome to mirror list, hosted at ThFree Co, Russian Federation.

add_ci_variable_spec.rb « ci_variable « 4_verify « browser_ui « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e444bc7ef1b3cc5a3ceec5d2e52ae3e077678dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

module QA
  # Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/30
  context 'Verify', :quarantine do
    describe 'CI variable support' do
      it 'user adds a CI variable' do
        Runtime::Browser.visit(:gitlab, Page::Main::Login)
        Page::Main::Login.act { sign_in_using_credentials }

        Resource::CiVariable.fabricate! do |resource|
          resource.key = 'VARIABLE_KEY'
          resource.value = 'some CI variable'
        end

        Page::Project::Settings::CICD.perform do |settings|
          settings.expand_ci_variables do |page|
            expect(page).to have_field(with: 'VARIABLE_KEY')
            expect(page).not_to have_field(with: 'some CI variable')

            page.reveal_variables

            expect(page).to have_field(with: 'some CI variable')
          end
        end
      end
    end
  end
end