Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions packages/amazonq/test/e2e/amazonq/doc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,43 @@ describe('Amazon Q Doc', async function () {
FollowUpTypes.MakeChanges,
FollowUpTypes.RejectChanges,
])

tab.clickButton(FollowUpTypes.AcceptChanges)

await tab.waitForButtons([FollowUpTypes.NewTask, FollowUpTypes.CloseSession])
})
})

describe('Edits a README', () => {
beforeEach(async function () {
tab.addChatMessage({ command: '/doc' })
await tab.waitForChatFinishesLoading()
})

it('Make specific change in README', async () => {
await tab.waitForButtons([FollowUpTypes.UpdateDocumentation])

tab.clickButton(FollowUpTypes.UpdateDocumentation)

await tab.waitForButtons([FollowUpTypes.SynchronizeDocumentation, FollowUpTypes.EditDocumentation])

tab.clickButton(FollowUpTypes.EditDocumentation)

await tab.waitForButtons([FollowUpTypes.ProceedFolderSelection])

tab.clickButton(FollowUpTypes.ProceedFolderSelection)

tab.addChatMessage({ prompt: 'remove the repository structure section' })

await tab.waitForText(
`${i18n('AWS.amazonq.doc.answer.readmeUpdated')} ${i18n('AWS.amazonq.doc.answer.codeResult')}`
)

await tab.waitForButtons([
FollowUpTypes.AcceptChanges,
FollowUpTypes.MakeChanges,
FollowUpTypes.RejectChanges,
])
})
})
})
Loading