it'shows a warning that the merge request contains unresolved discussions'do
it'shows a warning that the merge request contains unresolved threads'do
expect(page).tohave_content'There are unresolved discussions.'
expect(page).tohave_content'There are unresolved threads.'
end
end
it'has a link to resolve all discussions by creating an issue'do
it'has a link to resolve all threads by creating an issue'do
page.within'.mr-widget-body'do
page.within'.mr-widget-body'do
expect(page).tohave_link'Create an issue to resolve them later',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
expect(page).tohave_link'Create an issue to resolve them later',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
end
end
context'creating an issue for discussions'do
context'creating an issue for threads'do
beforedo
beforedo
page.click_link'Create an issue to resolve them later',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
page.click_link'Create an issue to resolve them later',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
it_behaves_like'creating an issue for a discussion'
it_behaves_like'creating an issue for a thread'
end
end
end
end
end
end
...
@@ -92,8 +92,8 @@ describe 'Resolving all open discussions in a merge request from an issue', :js
...
@@ -92,8 +92,8 @@ describe 'Resolving all open discussions in a merge request from an issue', :js