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

keys_spec.rb « profiles « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b20d38c520cd603205096fcdd9f8a2ce9a8984b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rails_helper'

describe 'Profile > SSH Keys', feature: true do
  let(:user) { create(:user) }

  before do
    login_as(user)
    visit profile_keys_path
  end

  describe 'User adds an SSH key' do
    it 'auto-populates the title', js: true do
      fill_in('Key', with: attributes_for(:key).fetch(:key))

      expect(find_field('Title').value).to eq 'dummy@gitlab.com'
    end
  end
end