Move spec to check on MR page instead of Issues page
This commit is contained in:
parent
f20875ec45
commit
08728cb326
1 changed files with 14 additions and 12 deletions
|
@ -7,25 +7,27 @@ feature 'Issue filtering by Labels', feature: true, js: true do
|
||||||
let!(:user) { create(:user) }
|
let!(:user) { create(:user) }
|
||||||
let!(:label) { create(:label, project: project) }
|
let!(:label) { create(:label, project: project) }
|
||||||
|
|
||||||
|
let!(:bug) { create(:label, project: project, title: 'bug') }
|
||||||
|
let!(:feature) { create(:label, project: project, title: 'feature') }
|
||||||
|
let!(:enhancement) { create(:label, project: project, title: 'enhancement') }
|
||||||
|
|
||||||
|
let!(:mr1) { create(:merge_request, title: "Bugfix1", source_project: project, target_project: project, source_branch: "bugfix1") }
|
||||||
|
let!(:mr2) { create(:merge_request, title:"Bugfix2", source_project: project, target_project: project, source_branch: "bugfix2") }
|
||||||
|
let!(:mr3) { create(:merge_request, title: "Feature1", source_project: project, target_project: project, source_branch: "feature1") }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
bug = create(:label, project: project, title: 'bug')
|
mr1.labels << bug
|
||||||
feature = create(:label, project: project, title: 'feature')
|
|
||||||
enhancement = create(:label, project: project, title: 'enhancement')
|
|
||||||
|
|
||||||
issue1 = create(:issue, title: "Bugfix1", project: project)
|
mr2.labels << bug
|
||||||
issue1.labels << bug
|
mr2.labels << enhancement
|
||||||
|
|
||||||
issue2 = create(:issue, title: "Bugfix2", project: project)
|
mr3.title = "Feature1"
|
||||||
issue2.labels << bug
|
mr3.labels << feature
|
||||||
issue2.labels << enhancement
|
|
||||||
|
|
||||||
issue3 = create(:issue, title: "Feature1", project: project)
|
|
||||||
issue3.labels << feature
|
|
||||||
|
|
||||||
project.team << [user, :master]
|
project.team << [user, :master]
|
||||||
login_as(user)
|
login_as(user)
|
||||||
|
|
||||||
visit namespace_project_issues_path(project.namespace, project)
|
visit namespace_project_merge_requests_path(project.namespace, project)
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'filter by label bug' do
|
context 'filter by label bug' do
|
Loading…
Reference in a new issue