BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
49fcbdbd
Commit
49fcbdbd
authored
Jun 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test user page with spinach
parent
6c0fd9f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+1
-1
profile.feature
features/profile/profile.feature
+5
-0
profile.rb
features/steps/profile/profile.rb
+12
-0
No files found.
app/views/layouts/_head_panel.html.haml
View file @
49fcbdbd
...
...
@@ -36,6 +36,6 @@
=
link_to
destroy_user_session_path
,
class:
"logout"
,
method: :delete
,
title:
"Logout"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Logout'
do
%i
.icon-signout
%li
=
link_to
current_user
,
class:
"profile-pic"
do
=
link_to
current_user
,
class:
"profile-pic"
,
id:
'profile-pic'
do
=
image_tag
gravatar_icon
(
current_user
.
email
,
26
)
features/profile/profile.feature
View file @
49fcbdbd
...
...
@@ -38,6 +38,11 @@ Feature: Profile
When
I visit profile history page
Then
I should see my activity
Scenario
:
I
visit my user page
When
I visit profile page
And
I click on my profile picture
Then
I should see my user page
@javascript
Scenario
:
I
change my application theme
Given
I visit profile design page
...
...
features/steps/profile/profile.rb
View file @
49fcbdbd
...
...
@@ -104,4 +104,16 @@ class Profile < Spinach::FeatureSteps
step
'I redirected to sign in page'
do
current_path
.
should
==
new_user_session_path
end
step
'I click on my profile picture'
do
click_link
'profile-pic'
end
step
'I should see my user page'
do
page
.
should
have_content
"User Activity"
within
'.navbar-gitlab'
do
page
.
should
have_content
current_user
.
name
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment