Preselected Milestone: Cucumber scenario added
This commit is contained in:
parent
137594dd08
commit
09263719d5
2 changed files with 22 additions and 0 deletions
|
@ -64,3 +64,13 @@ Feature: Issues
|
||||||
And I fill in issue search with ""
|
And I fill in issue search with ""
|
||||||
Then I should see "Release 0.4" in issues
|
Then I should see "Release 0.4" in issues
|
||||||
And I should see "Release 0.3" in issues
|
And I should see "Release 0.3" in issues
|
||||||
|
|
||||||
|
@javascript
|
||||||
|
@current
|
||||||
|
Scenario: I create Issue with pre-selected milestone
|
||||||
|
Given project "Shop" has milestone "v2.2"
|
||||||
|
And project "Shop" has milestone "v3.0"
|
||||||
|
And I visit project "Shop" issues page
|
||||||
|
When I select milestone "v3.0"
|
||||||
|
And I click link "New Issue"
|
||||||
|
Then I should see selected milestone with title "v3.0"
|
||||||
|
|
|
@ -55,3 +55,15 @@ Given /^I fill in issue search with "(.*?)"$/ do |arg1|
|
||||||
end
|
end
|
||||||
fill_in 'issue_search', with: arg1
|
fill_in 'issue_search', with: arg1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I select milestone "(.*?)"$/ do |milestone_title|
|
||||||
|
select milestone_title, from: "milestone_id"
|
||||||
|
end
|
||||||
|
|
||||||
|
Then /^I should see selected milestone with title "(.*?)"$/ do |milestone_title|
|
||||||
|
issues_milestone_selector = "#issue_milestone_id_chzn/a"
|
||||||
|
wait_until{
|
||||||
|
page.has_content?("Details")
|
||||||
|
}
|
||||||
|
page.find(issues_milestone_selector).should have_content(milestone_title)
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue