2012-06-27 20:20:35 +02:00
|
|
|
Feature: Issues
|
|
|
|
Background:
|
|
|
|
Given I signin as a user
|
|
|
|
And I own project "Shop"
|
|
|
|
And project "Shop" have "Release 0.4" open issue
|
|
|
|
And project "Shop" have "Release 0.3" closed issue
|
2012-09-06 08:15:51 +02:00
|
|
|
And I visit project "Shop" issues page
|
2012-06-27 20:20:35 +02:00
|
|
|
|
|
|
|
Scenario: I should see open issues
|
2012-08-03 18:49:54 +02:00
|
|
|
Given I should see "Release 0.4" in issues
|
|
|
|
And I should not see "Release 0.3" in issues
|
2012-06-27 20:20:35 +02:00
|
|
|
|
2012-08-03 18:49:54 +02:00
|
|
|
Scenario: I should see closed issues
|
|
|
|
Given I click link "Closed"
|
|
|
|
Then I should see "Release 0.3" in issues
|
|
|
|
And I should not see "Release 0.4" in issues
|
|
|
|
|
|
|
|
Scenario: I should see all issues
|
|
|
|
Given I click link "All"
|
|
|
|
Then I should see "Release 0.3" in issues
|
|
|
|
And I should see "Release 0.4" in issues
|
|
|
|
|
|
|
|
Scenario: I visit issue page
|
|
|
|
Given I click link "Release 0.4"
|
|
|
|
Then I should see issue "Release 0.4"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I submit new unassigned issue
|
|
|
|
Given I click link "New Issue"
|
|
|
|
And I submit new issue "500 error on profile"
|
|
|
|
Given I click link "500 error on profile"
|
|
|
|
Then I should see issue "500 error on profile"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I comment issue
|
|
|
|
Given I visit issue page "Release 0.4"
|
|
|
|
And I leave a comment like "XML attached"
|
2012-08-03 18:59:55 +02:00
|
|
|
Then I should see comment "XML attached"
|
2012-09-06 08:15:51 +02:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I search issue
|
|
|
|
Given I fill in issue search with "Release"
|
|
|
|
Then I should see "Release 0.4" in issues
|
|
|
|
And I should not see "Release 0.3" in issues
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I search issue that not exist
|
|
|
|
Given I fill in issue search with "Bug"
|
|
|
|
Then I should not see "Release 0.4" in issues
|
|
|
|
And I should not see "Release 0.3" in issues
|
|
|
|
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I search all issues
|
|
|
|
Given I click link "All"
|
|
|
|
And I fill in issue search with "0.3"
|
|
|
|
Then I should see "Release 0.3" in issues
|
|
|
|
And I should not see "Release 0.4" in issues
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I clear search
|
|
|
|
Given I click link "All"
|
|
|
|
And I fill in issue search with "Something"
|
|
|
|
And I fill in issue search with ""
|
|
|
|
Then I should see "Release 0.4" in issues
|
|
|
|
And I should see "Release 0.3" in issues
|
2012-09-07 12:56:13 +02:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
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"
|
2012-09-07 15:51:37 +02:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
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
|
|
|
|
|