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
Tatuya Kamada
gitlab-ce
Commits
c41805f6
Commit
c41805f6
authored
Oct 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for broken admin user page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b82d4018
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
features/admin/users.feature
features/admin/users.feature
+6
-0
features/steps/admin/users.rb
features/steps/admin/users.rb
+19
-0
No files found.
features/admin/users.feature
View file @
c41805f6
...
@@ -16,6 +16,12 @@ Feature: Admin Users
...
@@ -16,6 +16,12 @@ Feature: Admin Users
Then
See username error message
Then
See username error message
And
Not changed form action url
And
Not changed form action url
Scenario
:
Show user attributes
Given
user
"Mike"
with groups and projects
Given
I visit admin users page
And
click on
"Mike"
link
Then
I should see user
"Mike"
details
Scenario
:
Edit my user attributes
Scenario
:
Edit my user attributes
Given
I visit admin users page
Given
I visit admin users page
And
click edit on my user
And
click edit on my user
...
...
features/steps/admin/users.rb
View file @
c41805f6
...
@@ -63,4 +63,23 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
...
@@ -63,4 +63,23 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
step
'I should not see secondary email anymore'
do
step
'I should not see secondary email anymore'
do
page
.
should_not
have_content
"Secondary email:"
page
.
should_not
have_content
"Secondary email:"
end
end
step
'user "Mike" with groups and projects'
do
user
=
create
(
:user
,
name:
'Mike'
)
project
=
create
(
:empty_project
)
project
.
team
<<
[
user
,
:developer
]
group
=
create
(
:group
)
group
.
add_user
(
user
,
Gitlab
::
Access
::
DEVELOPER
)
end
step
'click on "Mike" link'
do
click_link
"Mike"
end
step
'I should see user "Mike" details'
do
page
.
should
have_content
'Account'
page
.
should
have_content
'Personal projects limit'
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