mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Feature for visit issues page for internal project as auth user.
This commit is contained in:
@@ -67,9 +67,15 @@ Feature: Public Projects Feature
|
||||
Given I visit project "Community" page
|
||||
And I visit "Community" issues page
|
||||
Then I should see list of issues for "Community" project
|
||||
@bug
|
||||
|
||||
Scenario: I visit public project issues page as authorized user
|
||||
Given I sign in as a user
|
||||
Given I visit project "Community" page
|
||||
And I visit "Community" issues page
|
||||
Then I should see list of issues for "Community" project
|
||||
|
||||
Scenario: I visit internal project issues page as authorized user
|
||||
Given I sign in as a user
|
||||
Given I visit project "Internal" page
|
||||
And I visit "Internal" issues page
|
||||
Then I should see list of issues for "Internal" project
|
||||
|
||||
@@ -129,5 +129,27 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
|
||||
page.should have_content project.name
|
||||
page.should have_content "New feature"
|
||||
end
|
||||
|
||||
step 'I visit "Internal" issues page' do
|
||||
project = Project.find_by(name: 'Internal')
|
||||
create(:issue,
|
||||
title: "Internal Bug",
|
||||
project: project
|
||||
)
|
||||
create(:issue,
|
||||
title: "New internal feature",
|
||||
project: project
|
||||
)
|
||||
visit project_issues_path(project)
|
||||
end
|
||||
|
||||
|
||||
step 'I should see list of issues for "Internal" project' do
|
||||
project = Project.find_by(name: 'Internal')
|
||||
|
||||
page.should have_content "Internal Bug"
|
||||
page.should have_content project.name
|
||||
page.should have_content "New internal feature"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user