2012-09-10 12:34:01 +00:00
|
|
|
Feature: Project Issues
|
2012-06-27 18:20:35 +00:00
|
|
|
Background:
|
2012-09-10 12:34:01 +00:00
|
|
|
Given I sign in as a user
|
2012-06-27 18:20:35 +00:00
|
|
|
And I own project "Shop"
|
|
|
|
And project "Shop" have "Release 0.4" open issue
|
2013-09-27 13:25:24 +00:00
|
|
|
And project "Shop" have "Tweet control" open issue
|
2012-06-27 18:20:35 +00:00
|
|
|
And project "Shop" have "Release 0.3" closed issue
|
2012-09-06 06:15:51 +00:00
|
|
|
And I visit project "Shop" issues page
|
2012-06-27 18:20:35 +00:00
|
|
|
|
|
|
|
Scenario: I should see open issues
|
2012-08-03 16:49:54 +00:00
|
|
|
Given I should see "Release 0.4" in issues
|
|
|
|
And I should not see "Release 0.3" in issues
|
2012-06-27 18:20:35 +00:00
|
|
|
|
2012-08-03 16:49:54 +00: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"
|
|
|
|
|
|
|
|
Scenario: I submit new unassigned issue
|
|
|
|
Given I click link "New Issue"
|
|
|
|
And I submit new issue "500 error on profile"
|
|
|
|
Then I should see issue "500 error on profile"
|
|
|
|
|
2014-07-31 11:14:27 +00:00
|
|
|
Scenario: I submit new unassigned issue with labels
|
|
|
|
Given project "Shop" has labels: "bug", "feature", "enhancement"
|
|
|
|
And I click link "New Issue"
|
|
|
|
And I submit new issue "500 error on profile" with label 'bug'
|
|
|
|
Then I should see issue "500 error on profile"
|
|
|
|
And I should see label 'bug' with issue
|
|
|
|
|
2012-08-03 16:49:54 +00:00
|
|
|
@javascript
|
|
|
|
Scenario: I comment issue
|
|
|
|
Given I visit issue page "Release 0.4"
|
|
|
|
And I leave a comment like "XML attached"
|
2012-08-03 16:59:55 +00:00
|
|
|
Then I should see comment "XML attached"
|
2012-09-06 06:15:51 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I search issue
|
2013-09-27 13:25:24 +00:00
|
|
|
Given I fill in issue search with "Re"
|
2012-09-06 06:15:51 +00:00
|
|
|
Then I should see "Release 0.4" in issues
|
|
|
|
And I should not see "Release 0.3" in issues
|
2013-09-27 13:25:24 +00:00
|
|
|
And I should not see "Tweet control" in issues
|
2012-09-06 06:15:51 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I search issue that not exist
|
2013-09-27 13:25:24 +00:00
|
|
|
Given I fill in issue search with "Bu"
|
2012-09-06 06:15:51 +00:00
|
|
|
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"
|
2013-09-27 13:25:24 +00:00
|
|
|
And I fill in issue search with ".3"
|
2012-09-06 06:15:51 +00:00
|
|
|
Then I should see "Release 0.3" in issues
|
|
|
|
And I should not see "Release 0.4" in issues
|
2014-02-04 07:48:33 +00:00
|
|
|
|
|
|
|
# Markdown
|
|
|
|
|
|
|
|
Scenario: Headers inside the description should have ids generated for them.
|
|
|
|
Given I visit issue page "Release 0.4"
|
|
|
|
Then Header "Description header" should have correct id and link
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Headers inside comments should not have ids generated for them.
|
|
|
|
Given I visit issue page "Release 0.4"
|
|
|
|
And I leave a comment with a header containing "Comment with a header"
|
|
|
|
Then The comment with the header should not have an ID
|
2014-04-08 15:12:57 +00:00
|
|
|
|
2014-05-23 10:58:34 +00:00
|
|
|
@javascript
|
|
|
|
Scenario: Blocks inside comments should not build relative links
|
|
|
|
Given I visit issue page "Release 0.4"
|
|
|
|
And I leave a comment with code block
|
|
|
|
Then The code block should be unchanged
|
|
|
|
|
2014-04-08 15:12:57 +00:00
|
|
|
Scenario: Issues on empty project
|
|
|
|
Given empty project "Empty Project"
|
|
|
|
When I visit empty project page
|
|
|
|
And I see empty project details with ssh clone info
|
|
|
|
When I visit empty project's issues page
|
|
|
|
Given I click link "New Issue"
|
|
|
|
And I submit new issue "500 error on profile"
|
|
|
|
Then I should see issue "500 error on profile"
|