forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the 'profile/active_tab.feature' spinach test with an rspec a…
…nalog
- Loading branch information
1 parent
373ff97
commit 297dfe6
Showing
8 changed files
with
79 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Replace the 'profile/active_tab.feature' spinach test with an rspec analog | ||
merge_request: 14239 | ||
author: Vitaliy @blackst0ne Klachkov | ||
type: other |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
spec/features/profiles/user_visits_profile_account_page_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'spec_helper' | ||
|
||
describe 'User visits the profile account page' do | ||
let(:user) { create(:user) } | ||
|
||
before do | ||
sign_in(user) | ||
|
||
visit(profile_account_path) | ||
end | ||
|
||
it 'shows correct menu item' do | ||
expect(find('.sidebar-top-level-items > li.active')).to have_content('Account') | ||
expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) | ||
end | ||
end |
16 changes: 16 additions & 0 deletions
16
spec/features/profiles/user_visits_profile_authentication_log_page_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'spec_helper' | ||
|
||
describe 'User visits the profile page' do | ||
let(:user) { create(:user) } | ||
|
||
before do | ||
sign_in(user) | ||
|
||
visit(profile_path) | ||
end | ||
|
||
it 'shows correct menu item' do | ||
expect(find('.sidebar-top-level-items > li.active')).to have_content('Profile') | ||
expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
spec/features/profiles/user_visits_profile_ssh_keys_page_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'spec_helper' | ||
|
||
describe 'User visits the profile SSH keys page' do | ||
let(:user) { create(:user) } | ||
|
||
before do | ||
sign_in(user) | ||
|
||
visit(profile_keys_path) | ||
end | ||
|
||
it 'shows correct menu item' do | ||
expect(find('.sidebar-top-level-items > li.active')).to have_content('SSH Keys') | ||
expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) | ||
end | ||
end |