expect(page).not_tohave_content"Resolve all threads in new issue"
expect(page).not_tohave_content"Create issue to resolve all threads"
end
end
end
end
...
@@ -62,7 +62,7 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
...
@@ -62,7 +62,7 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
end
end
it'does not show a link to create a new issue'do
it'does not show a link to create a new issue'do
expect(page).not_tohave_link'Resolve all threads in new issue'
expect(page).not_tohave_link'Create issue to resolve all threads'
end
end
end
end
...
@@ -77,14 +77,14 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
...
@@ -77,14 +77,14 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
it'has a link to resolve all threads 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'Resolve all threads in new issue',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
expect(page).tohave_link'Create issue to resolve all threads',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
end
end
context'creating an issue for threads'do
context'creating an issue for threads'do
beforedo
beforedo
page.within'.mr-widget-body'do
page.within'.mr-widget-body'do
page.click_link'Resolve all threads in new issue',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)
page.click_link'Create issue to resolve all threads',href: new_project_issue_path(project,merge_request_to_resolve_discussions_of: merge_request.iid)