BigW Consortium Gitlab

references.feature 1.31 KB
Newer Older
1 2 3 4
@project_issues
Feature: Project Issues References
  Background:
    Given I sign in as "John Doe"
5
    And public project "Community"
6
    And "John Doe" owns public project "Community"
7
    And project "Community" has "Community issue" open issue
8 9
    And I logout
    And I sign in as "Mary Jane"
10 11 12 13 14 15 16 17
    And private project "Enterprise"
    And "Mary Jane" owns private project "Enterprise"
    And project "Enterprise" has "Enterprise issue" open issue
    And project "Enterprise" has "Enterprise fix" open merge request
    And I visit issue page "Enterprise issue"
    And I leave a comment referencing issue "Community issue"
    And I visit merge request page "Enterprise fix"
    And I leave a comment referencing issue "Community issue"
18 19 20 21 22
    And I logout

  @javascript
  Scenario: Viewing the public issue as a "John Doe"
    Given I sign in as "John Doe"
23
    When I visit issue page "Community issue"
24 25 26 27 28 29
    Then I should not see any related merge requests
    And I should see no notes at all

  @javascript
  Scenario: Viewing the public issue as "Mary Jane"
    Given I sign in as "Mary Jane"
30 31 32 33
    When I visit issue page "Community issue"
    Then I should see the "Enterprise fix" related merge request
    And I should see a note linking to "Enterprise fix" merge request
    And I should see a note linking to "Enterprise issue" issue