Commit 7bf29a18 authored by Simon Knox's avatar Simon Knox

Merge branch 'selhorn-todo-update-1' into 'master'

Updated to-do to match guidance

See merge request gitlab-org/gitlab!70021
parents 39a425ca 635983c5
...@@ -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),
}); });
......
...@@ -33112,7 +33112,7 @@ msgstr "" ...@@ -33112,7 +33112,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."
...@@ -33124,7 +33124,7 @@ msgstr "" ...@@ -33124,7 +33124,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