Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+1
-1
features/profile/profile.feature
features/profile/profile.feature
+5
-0
features/steps/profile/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 @@
...
@@ -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
=
link_to
destroy_user_session_path
,
class:
"logout"
,
method: :delete
,
title:
"Logout"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Logout'
do
%i
.icon-signout
%i
.icon-signout
%li
%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
)
=
image_tag
gravatar_icon
(
current_user
.
email
,
26
)
features/profile/profile.feature
View file @
49fcbdbd
...
@@ -38,6 +38,11 @@ Feature: Profile
...
@@ -38,6 +38,11 @@ Feature: Profile
When
I visit profile history page
When
I visit profile history page
Then
I should see my activity
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
@javascript
Scenario
:
I
change my application theme
Scenario
:
I
change my application theme
Given
I visit profile design page
Given
I visit profile design page
...
...
features/steps/profile/profile.rb
View file @
49fcbdbd
...
@@ -104,4 +104,16 @@ class Profile < Spinach::FeatureSteps
...
@@ -104,4 +104,16 @@ class Profile < Spinach::FeatureSteps
step
'I redirected to sign in page'
do
step
'I redirected to sign in page'
do
current_path
.
should
==
new_user_session_path
current_path
.
should
==
new_user_session_path
end
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
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