.btn.btn-default.discussion-create-issue-btn.has-tooltip{title: "Resolve all discussions in new issue",
"aria-label"=>"Resolve all discussions in new issue",
"data-container"=>"body"}
=link_tocustom_icon('icon_mr_issue'),new_namespace_project_issue_path(@project.namespace,@project,merge_request_for_resolving_discussions: merge_request.iid),title: "Resolve all discussions in new issue",class: 'new-issue-for-discussion'
it'shows a button to resolve all discussions by creating a new issue'do
within('li#resolve-count-app')do
expect(page).tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
end
end
context'resolving the discussion'do
beforedo
click_button'Resolve discussion'
end
it'hides the link for creating a new issue'do
expect(page).not_tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
end
end
context'creating an issue for discussions'do
beforedo
click_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
end
it_behaves_like'creating an issue for a discussion'
end
context'for a project where all discussions need to be resolved before merging'do
@@ -42,13 +72,8 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
...
@@ -42,13 +72,8 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
page.click_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
page.click_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)