Skip to content

Commit f412e83

Browse files
fix(amazonq): update capability card text for /test (#5398)
* Consistent copy for /test capability card * changelog --------- Co-authored-by: Sam Stewart <samgst@amazon.com>
1 parent 92ceccc commit f412e83

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "/test: update capability card text"
4+
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/codeTestChatConnector.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ interface MessageData {
5151

5252
function getIntroductionCardContent(): IntroductionCardContentType {
5353
const introductionBody = [
54-
"I can generate unit tests for your active file. ",
54+
"I can generate unit tests for the active file or open project in your IDE.",
5555
"\n\n",
56-
"After you select the functions or methods I should focus on, I will:\n",
57-
"1. Generate unit tests\n",
58-
"2. Place them into relevant test file\n",
56+
"I can do things like:\n",
57+
"- Add unit tests for highlighted functions\n",
58+
"- Generate tests for null and empty inputs\n",
5959
"\n\n",
60-
"To learn more, check out our [user guide](https://aws.amazon.com/q/developer/)."
60+
"To learn more, visit the [Amazon Q Developer User Guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/test-generation.html)."
6161
].join("");
6262

6363
return {
64-
title: "/test",
65-
description: "Included in your Q Developer subscription",
64+
title: "/test - Unit test generation",
65+
description: "Generate unit tests for selected code",
6666
icon: MynahIcons.CHECK_LIST,
6767
content: {
6868
body: introductionBody

0 commit comments

Comments
 (0)