Commit 814c5a27 authored by Amy Qualls's avatar Amy Qualls Committed by Phil Hughes

Initial fix to "all threads must be resolved"

parent f3e3f13d
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
<status-icon :show-disabled-button="true" status="warning" /> <status-icon :show-disabled-button="true" status="warning" />
<div class="media-body"> <div class="media-body">
<span class="gl-ml-3 gl-font-weight-bold gl-display-block gl-w-100">{{ <span class="gl-ml-3 gl-font-weight-bold gl-display-block gl-w-100">{{
s__('mrWidget|Before this can be merged, one or more threads must be resolved.') s__('mrWidget|Merge blocked: all threads must be resolved.')
}}</span> }}</span>
<gl-button <gl-button
data-testid="jump-to-first" data-testid="jump-to-first"
......
...@@ -38270,9 +38270,6 @@ msgstr "" ...@@ -38270,9 +38270,6 @@ msgstr ""
msgid "mrWidget|Are you adding technical debt or code vulnerabilities?" msgid "mrWidget|Are you adding technical debt or code vulnerabilities?"
msgstr "" msgstr ""
msgid "mrWidget|Before this can be merged, one or more threads must be resolved."
msgstr ""
msgid "mrWidget|Cancel automatic merge" msgid "mrWidget|Cancel automatic merge"
msgstr "" msgstr ""
...@@ -38339,6 +38336,9 @@ msgstr "" ...@@ -38339,6 +38336,9 @@ msgstr ""
msgid "mrWidget|Merge" msgid "mrWidget|Merge"
msgstr "" msgstr ""
msgid "mrWidget|Merge blocked: all threads must be resolved."
msgstr ""
msgid "mrWidget|Merge failed." msgid "mrWidget|Merge failed."
msgstr "" msgstr ""
......
...@@ -72,7 +72,7 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j ...@@ -72,7 +72,7 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
end end
it 'shows a warning that the merge request contains unresolved threads' do it 'shows a warning that the merge request contains unresolved threads' do
expect(page).to have_content 'Before this can be merged,' expect(page).to have_content 'all threads must be resolved'
end end
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
......
...@@ -21,7 +21,7 @@ RSpec.describe 'Merge request > User sees merge button depending on unresolved t ...@@ -21,7 +21,7 @@ RSpec.describe 'Merge request > User sees merge button depending on unresolved t
context 'with unresolved threads' do context 'with unresolved threads' do
it 'does not allow to merge' do it 'does not allow to merge' do
expect(page).not_to have_button 'Merge' expect(page).not_to have_button 'Merge'
expect(page).to have_content('Before this can be merged,') expect(page).to have_content('all threads must be resolved')
end end
end end
......
...@@ -42,9 +42,7 @@ describe('UnresolvedDiscussions', () => { ...@@ -42,9 +42,7 @@ describe('UnresolvedDiscussions', () => {
}); });
it('should have correct elements', () => { it('should have correct elements', () => {
expect(wrapper.element.innerText).toContain( expect(wrapper.element.innerText).toContain(`Merge blocked: all threads must be resolved.`);
`Before this can be merged, one or more threads must be resolved.`,
);
expect(wrapper.element.innerText).toContain('Jump to first unresolved thread'); expect(wrapper.element.innerText).toContain('Jump to first unresolved thread');
expect(wrapper.element.innerText).toContain('Resolve all threads in new issue'); expect(wrapper.element.innerText).toContain('Resolve all threads in new issue');
...@@ -56,9 +54,7 @@ describe('UnresolvedDiscussions', () => { ...@@ -56,9 +54,7 @@ describe('UnresolvedDiscussions', () => {
describe('without threads path', () => { describe('without threads path', () => {
it('should not show create issue link if user cannot create issue', () => { it('should not show create issue link if user cannot create issue', () => {
expect(wrapper.element.innerText).toContain( expect(wrapper.element.innerText).toContain(`Merge blocked: all threads must be resolved.`);
`Before this can be merged, one or more threads must be resolved.`,
);
expect(wrapper.element.innerText).toContain('Jump to first unresolved thread'); expect(wrapper.element.innerText).toContain('Jump to first unresolved thread');
expect(wrapper.element.innerText).not.toContain('Resolve all threads in new issue'); expect(wrapper.element.innerText).not.toContain('Resolve all threads in new issue');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment