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
8527e8d5
Commit
8527e8d5
authored
9 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test for creating group from dashboard
parent
04c674e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
features/dashboard/group.feature
features/dashboard/group.feature
+8
-0
features/groups.feature
features/groups.feature
+0
-8
features/steps/dashboard/group.rb
features/steps/dashboard/group.rb
+19
-0
features/steps/groups.rb
features/steps/groups.rb
+0
-19
No files found.
features/dashboard/group.feature
View file @
8527e8d5
...
@@ -46,3 +46,11 @@ Feature: Dashboard Group
...
@@ -46,3 +46,11 @@ Feature: Dashboard Group
When
I visit dashboard groups page
When
I visit dashboard groups page
Then
I should see group
"Owned"
in group list
Then
I should see group
"Owned"
in group list
Then
I should not see group
"Guest"
in group list
Then
I should not see group
"Guest"
in group list
Scenario
:
Create a group from dasboard
And
I visit dashboard groups page
And
I click new group link
And
submit form with new group
"Samurai"
info
Then
I should be redirected to group
"Samurai"
page
And
I should see newly created group
"Samurai"
This diff is collapsed.
Click to expand it.
features/groups.feature
View file @
8527e8d5
...
@@ -10,14 +10,6 @@ Feature: Groups
...
@@ -10,14 +10,6 @@ Feature: Groups
Then
I should see group
"Owned"
projects list
Then
I should see group
"Owned"
projects list
And
I should see projects activity feed
And
I should see projects activity feed
Scenario
:
Create a group from dasboard
When
I visit group
"Owned"
page
And
I visit dashboard page
And
I click new group link
And
submit form with new group
"Samurai"
info
Then
I should be redirected to group
"Samurai"
page
And
I should see newly created group
"Samurai"
Scenario
:
I
should see group
"Owned"
issues list
Scenario
:
I
should see group
"Owned"
issues list
Given
project from group
"Owned"
has issues assigned to me
Given
project from group
"Owned"
has issues assigned to me
When
I visit group
"Owned"
issues page
When
I visit group
"Owned"
issues page
...
...
This diff is collapsed.
Click to expand it.
features/steps/dashboard/group.rb
View file @
8527e8d5
...
@@ -41,4 +41,23 @@ class Spinach::Features::DashboardGroup < Spinach::FeatureSteps
...
@@ -41,4 +41,23 @@ class Spinach::Features::DashboardGroup < Spinach::FeatureSteps
step
'I should not see group "Guest" in group list'
do
step
'I should not see group "Guest" in group list'
do
page
.
should_not
have_content
(
"Guest"
)
page
.
should_not
have_content
(
"Guest"
)
end
end
step
'I click new group link'
do
click_link
"New Group"
end
step
'submit form with new group "Samurai" info'
do
fill_in
'group_path'
,
with:
'Samurai'
fill_in
'group_description'
,
with:
'Tokugawa Shogunate'
click_button
"Create group"
end
step
'I should be redirected to group "Samurai" page'
do
current_path
.
should
==
group_path
(
Group
.
find_by
(
name:
'Samurai'
))
end
step
'I should see newly created group "Samurai"'
do
page
.
should
have_content
"Samurai"
page
.
should
have_content
"Tokugawa Shogunate"
end
end
end
This diff is collapsed.
Click to expand it.
features/steps/groups.rb
View file @
8527e8d5
...
@@ -72,25 +72,6 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
...
@@ -72,25 +72,6 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
author:
current_user
author:
current_user
end
end
When
'I click new group link'
do
click_link
"New group"
end
step
'submit form with new group "Samurai" info'
do
fill_in
'group_path'
,
with:
'Samurai'
fill_in
'group_description'
,
with:
'Tokugawa Shogunate'
click_button
"Create group"
end
step
'I should be redirected to group "Samurai" page'
do
current_path
.
should
==
group_path
(
Group
.
find_by
(
name:
'Samurai'
))
end
step
'I should see newly created group "Samurai"'
do
page
.
should
have_content
"Samurai"
page
.
should
have_content
"Tokugawa Shogunate"
end
step
'I change group "Owned" name to "new-name"'
do
step
'I change group "Owned" name to "new-name"'
do
fill_in
'group_name'
,
with:
'new-name'
fill_in
'group_name'
,
with:
'new-name'
fill_in
'group_path'
,
with:
'new-name'
fill_in
'group_path'
,
with:
'new-name'
...
...
This diff is collapsed.
Click to expand it.
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