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
Jérome Perrin
gitlab-ce
Commits
c818c93a
Commit
c818c93a
authored
Sep 07, 2012
by
Alex Denisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cucumber scenario on pre-selected assignee added
parent
26552051
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
features/projects/issues/issues.feature
features/projects/issues/issues.feature
+8
-1
features/step_definitions/project/project_issues_steps.rb
features/step_definitions/project/project_issues_steps.rb
+15
-4
No files found.
features/projects/issues/issues.feature
View file @
c818c93a
...
@@ -66,7 +66,6 @@ Feature: Issues
...
@@ -66,7 +66,6 @@ Feature: Issues
And
I should see
"Release 0.3"
in issues
And
I should see
"Release 0.3"
in issues
@javascript
@javascript
@current
Scenario
:
I
create Issue with pre-selected milestone
Scenario
:
I
create Issue with pre-selected milestone
Given
project
"Shop"
has milestone
"v2.2"
Given
project
"Shop"
has milestone
"v2.2"
And
project
"Shop"
has milestone
"v3.0"
And
project
"Shop"
has milestone
"v3.0"
...
@@ -74,3 +73,11 @@ Feature: Issues
...
@@ -74,3 +73,11 @@ Feature: Issues
When
I select milestone
"v3.0"
When
I select milestone
"v3.0"
And
I click link
"New Issue"
And
I click link
"New Issue"
Then
I should see selected milestone with title
"v3.0"
Then
I should see selected milestone with title
"v3.0"
@javascript
@current
Scenario
:
I
create Issue with pre-selected assignee
When
I select first assignee from
"Shop"
project
And
I click link
"New Issue"
Then
I should see first assignee from
"Shop"
as selected assignee
features/step_definitions/project/project_issues_steps.rb
View file @
c818c93a
...
@@ -57,14 +57,25 @@ Given /^I fill in issue search with "(.*?)"$/ do |arg1|
...
@@ -57,14 +57,25 @@ Given /^I fill in issue search with "(.*?)"$/ do |arg1|
end
end
When
/^I select milestone "(.*?)"$/
do
|
milestone_title
|
When
/^I select milestone "(.*?)"$/
do
|
milestone_title
|
#puts page.body
select
milestone_title
,
from:
"milestone_id"
select
milestone_title
,
from:
"milestone_id"
end
end
Then
/^I should see selected milestone with title "(.*?)"$/
do
|
milestone_title
|
Then
/^I should see selected milestone with title "(.*?)"$/
do
|
milestone_title
|
issues_milestone_selector
=
"#issue_milestone_id_chzn/a"
issues_milestone_selector
=
"#issue_milestone_id_chzn/a"
wait_until
{
wait_until
{
page
.
has_content?
(
"Details"
)
}
page
.
has_content?
(
"Details"
)
}
page
.
find
(
issues_milestone_selector
).
should
have_content
(
milestone_title
)
page
.
find
(
issues_milestone_selector
).
should
have_content
(
milestone_title
)
end
end
When
/^I select first assignee from "(.*?)" project$/
do
|
project_name
|
project
=
Project
.
find_by_name
project_name
first_assignee
=
project
.
users
.
first
select
first_assignee
.
name
,
from:
"assignee_id"
end
Then
/^I should see first assignee from "(.*?)" as selected assignee$/
do
|
project_name
|
issues_assignee_selector
=
"#issue_assignee_id_chzn/a"
wait_until
{
page
.
has_content?
(
"Details"
)
}
project
=
Project
.
find_by_name
project_name
assignee_name
=
project
.
users
.
first
.
name
page
.
find
(
issues_assignee_selector
).
should
have_content
(
assignee_name
)
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