it'shows a warning that the merge request contains unresolved discussions'do
expect(page).tohave_content'There are unresolved discussions.'
it'shows a warning that the merge request contains unresolved threads'do
expect(page).tohave_content'There are unresolved threads.'
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
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
context'creating an issue for discussions'do
context'creating an issue for threads'do
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)
end
it_behaves_like'creating an issue for a discussion'
it_behaves_like'creating an issue for a thread'
end
end
end
...
...
@@ -92,8 +92,8 @@ describe 'Resolving all open discussions in a merge request from an issue', :js