Skip to content

Commit 643ae10

Browse files
authored
test(amazonq): update view diff test (aws#6777)
## Problem - source code change for /test which adds a test plan summary after generating tests, but did not update e2e test to account for this ## Solution - update test --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 131005d commit 643ae10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/amazonq/test/e2e/amazonq/testGen.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ describe('Amazon Q Test Generation', function () {
194194
const viewDiffMessage = chatItems[5]
195195

196196
assert.deepStrictEqual(viewDiffMessage.type, 'answer')
197-
assert.deepStrictEqual(
198-
viewDiffMessage.body,
197+
const expectedEnding =
199198
'Please see the unit tests generated below. Click “View diff” to review the changes in the code editor.'
199+
assert.strictEqual(
200+
viewDiffMessage.body?.includes(expectedEnding),
201+
true,
202+
`View diff message does not contain phrase: ${expectedEnding}`
200203
)
201204
})
202205
})

0 commit comments

Comments
 (0)