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

user_activates_atlassian_bamboo_ci_spec.rb « integrations « projects « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49f62a34bd2ecb6c242a1edd4e1221a75052d519 (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

require 'spec_helper'

RSpec.describe 'User activates Atlassian Bamboo CI' do
  include_context 'project integration activation'

  before do
    stub_request(:get, /.*bamboo.example.com.*/)
  end

  it 'activates integration', :js do
    visit_project_integration('Atlassian Bamboo')
    fill_in('Bamboo URL', with: 'http://bamboo.example.com')
    fill_in('Build key', with: 'KEY')
    fill_in('Username', with: 'user')
    fill_in('Password', with: 'verySecret')

    click_test_then_save_integration(expect_test_to_fail: false)

    expect(page).to have_content('Atlassian Bamboo settings saved and active.')

    # Password field should not be filled in.
    click_link('Atlassian Bamboo')

    expect(find_field('Enter new password').value).to be_blank
    expect(page).to have_content('Leave blank to use your current password')
  end
end