Commit 635983c5 authored by Suzanne Selhorn's avatar Suzanne Selhorn Committed by Simon Knox

Updated to-do to match guidance

We have standardized on to-do item and this
MR updates UI text to use that language
See the word list for details
parent 73672f27
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}); });
}, },
/** /**
* We're using Public REST API to add Test Case as a Todo since * We're using Public REST API to add Test Case as a to-do item since
* GraphQL mutation to do the same is unavailable as of now. * GraphQL mutation to do the same is unavailable as of now.
*/ */
addTestCaseAsTodo() { addTestCaseAsTodo() {
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}) })
.catch((error) => { .catch((error) => {
createFlash({ createFlash({
message: s__('TestCases|Something went wrong while adding test case to Todo.'), message: s__('TestCases|Something went wrong while adding test case to a to-do item.'),
captureError: true, captureError: true,
error, error,
}); });
...@@ -112,7 +112,9 @@ export default { ...@@ -112,7 +112,9 @@ export default {
}) })
.catch((error) => { .catch((error) => {
createFlash({ createFlash({
message: s__('TestCases|Something went wrong while marking test case todo as done.'), message: s__(
'TestCases|Something went wrong while marking test case to-do item as done.',
),
captureError: true, captureError: true,
error, error,
}); });
......
...@@ -139,7 +139,7 @@ describe('TestCaseGraphQL Mixin', () => { ...@@ -139,7 +139,7 @@ describe('TestCaseGraphQL Mixin', () => {
return wrapper.vm.addTestCaseAsTodo().then(() => { return wrapper.vm.addTestCaseAsTodo().then(() => {
expect(createFlash).toHaveBeenCalledWith({ expect(createFlash).toHaveBeenCalledWith({
message: 'Something went wrong while adding test case to Todo.', message: 'Something went wrong while adding test case to a to-do item.',
captureError: true, captureError: true,
error: expect.any(Object), error: expect.any(Object),
}); });
...@@ -201,7 +201,7 @@ describe('TestCaseGraphQL Mixin', () => { ...@@ -201,7 +201,7 @@ describe('TestCaseGraphQL Mixin', () => {
return wrapper.vm.markTestCaseTodoDone().then(() => { return wrapper.vm.markTestCaseTodoDone().then(() => {
expect(createFlash).toHaveBeenCalledWith({ expect(createFlash).toHaveBeenCalledWith({
message: 'Something went wrong while marking test case todo as done.', message: 'Something went wrong while marking test case to-do item as done.',
captureError: true, captureError: true,
error: expect.any(Object), error: expect.any(Object),
}); });
......
...@@ -33080,7 +33080,7 @@ msgstr "" ...@@ -33080,7 +33080,7 @@ msgstr ""
msgid "TestCases|Search test cases" msgid "TestCases|Search test cases"
msgstr "" msgstr ""
msgid "TestCases|Something went wrong while adding test case to Todo." msgid "TestCases|Something went wrong while adding test case to a to-do item."
msgstr "" msgstr ""
msgid "TestCases|Something went wrong while creating a test case." msgid "TestCases|Something went wrong while creating a test case."
...@@ -33092,7 +33092,7 @@ msgstr "" ...@@ -33092,7 +33092,7 @@ msgstr ""
msgid "TestCases|Something went wrong while fetching test cases list." msgid "TestCases|Something went wrong while fetching test cases list."
msgstr "" msgstr ""
msgid "TestCases|Something went wrong while marking test case todo as done." msgid "TestCases|Something went wrong while marking test case to-do item as done."
msgstr "" msgstr ""
msgid "TestCases|Something went wrong while moving test case." msgid "TestCases|Something went wrong while moving test case."
......
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