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

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

describe 'User visits the authentication log page' do
  let(:user) { create(:user) }

  before do
    sign_in(user)

    visit(audit_log_profile_path)
  end

  it 'shows correct menu item' do
    expect(find('.sidebar-top-level-items > li.active')).to have_content('Authentication log')
    expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1)
  end
end