blob: bf7a4c6cb91cd77314bb0e59c01e3d1ef5e205e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
@project_issues
Feature: Project Issues References
Background:
Given I sign in as "John Doe"
And "John Doe" owns public project "Community"
And project "Community" has "Public Issue 01" open issue
And I logout
And I sign in as "Mary Jane"
And "Mary Jane" owns private project "Private Library"
And project "Private Library" has "Fix NS-01" open merge request
And project "Private Library" has "Private Issue 01" open issue
And I visit merge request page "Fix NS-01"
And I leave a comment referencing issue "Public Issue 01" from "Fix NS-01" merge request
And I visit issue page "Private Issue 01"
And I leave a comment referencing issue "Public Issue 01" from "Private Issue 01" issue
And I logout
@javascript
Scenario: Viewing the public issue as a "John Doe"
Given I sign in as "John Doe"
When I visit issue page "Public Issue 01"
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"
When I visit issue page "Public Issue 01"
Then I should see the "Fix NS-01" related merge request
And I should see a note linking to "Fix NS-01" merge request
And I should see a note linking to "Private Issue 01" issue
|