issues.feature 2.84 KB
Newer Older
1
Feature: Project Issues
2
  Background:
3
    Given I sign in as a user
4 5
    And I own project "Shop"
    And project "Shop" have "Release 0.4" open issue
6
    And project "Shop" have "Tweet control" open issue
7
    And project "Shop" have "Release 0.3" closed issue
randx's avatar
randx committed
8
    And I visit project "Shop" issues page
9 10

  Scenario: I should see open issues
11 12
    Given I should see "Release 0.4" in issues
    And I should not see "Release 0.3" in issues
13

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
  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"

  @javascript
  Scenario: I comment issue
    Given I visit issue page "Release 0.4"
    And I leave a comment like "XML attached"
37
    Then I should see comment "XML attached"
randx's avatar
randx committed
38 39 40

  @javascript
  Scenario: I search issue
41
    Given I fill in issue search with "Re"
randx's avatar
randx committed
42 43
    Then I should see "Release 0.4" in issues
    And I should not see "Release 0.3" in issues
44
    And I should not see "Tweet control" in issues
randx's avatar
randx committed
45 46 47

  @javascript
  Scenario: I search issue that not exist
48
    Given I fill in issue search with "Bu"
randx's avatar
randx committed
49 50 51 52 53 54
    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"
55
    And I fill in issue search with ".3"
randx's avatar
randx committed
56 57
    Then I should see "Release 0.3" in issues
    And I should not see "Release 0.4" in issues
58 59 60 61 62 63 64 65 66 67 68 69

  # 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
70

Marin Jankovski's avatar
Marin Jankovski committed
71 72 73 74 75 76
  @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

77 78 79 80 81 82 83 84
  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"