Skip to content

Commit 1830b7f

Browse files
SavioBS629claude
andcommitted
fix(testmanagement): match bulk path casing "MCP Generated"
Align the createTestCase origin tag with the existing bulk createTestCasesFromFile path (TCG-utils/helpers.ts), which uses "MCP Generated" (capital G). Keeps a single canonical tag string across both create paths for the Test Case Activity Report (PMAA-166). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6f3669e commit 1830b7f

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/tools/testmanagement-utils/create-testcase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export async function createTestCase(
319319
const testCaseParams: TestCaseCreateRequest = { ...params };
320320

321321
testCaseParams.tags = Array.from(
322-
new Set([...(testCaseParams.tags ?? []), "MCP generated"]),
322+
new Set([...(testCaseParams.tags ?? []), "MCP Generated"]),
323323
);
324324

325325
if (testCaseParams.priority !== undefined) {

tests/tools/create-testcase-tag.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ describe('createTestCase MCP-origin tag (PMAA-166)', () => {
6363
mockCreateSuccess();
6464
});
6565

66-
it('stamps "MCP generated" when the caller passes no tags', async () => {
66+
it('stamps "MCP Generated" when the caller passes no tags', async () => {
6767
await createTestCase({ ...baseArgs }, mockConfig);
68-
expect(sentTags()).toEqual(['MCP generated']);
68+
expect(sentTags()).toEqual(['MCP Generated']);
6969
});
7070

71-
it('preserves user tags and appends "MCP generated"', async () => {
71+
it('preserves user tags and appends "MCP Generated"', async () => {
7272
await createTestCase({ ...baseArgs, tags: ['smoke', 'regression'] }, mockConfig);
73-
expect(sentTags()).toEqual(['smoke', 'regression', 'MCP generated']);
73+
expect(sentTags()).toEqual(['smoke', 'regression', 'MCP Generated']);
7474
});
7575

76-
it('does not duplicate "MCP generated" if already present', async () => {
77-
await createTestCase({ ...baseArgs, tags: ['MCP generated'] }, mockConfig);
78-
expect(sentTags()).toEqual(['MCP generated']);
76+
it('does not duplicate "MCP Generated" if already present', async () => {
77+
await createTestCase({ ...baseArgs, tags: ['MCP Generated'] }, mockConfig);
78+
expect(sentTags()).toEqual(['MCP Generated']);
7979
});
8080
});

0 commit comments

Comments
 (0)