Skip to content

Conversation

@avi-alpert
Copy link
Contributor

@avi-alpert avi-alpert commented Dec 11, 2024

Add an E2E test for Creating a README using /doc
Moved reusable functions out of featureDev.test.ts to shared test framework


  • 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.

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@avi-alpert
Copy link
Contributor Author

/runIntegrationTests

@avi-alpert avi-alpert marked this pull request as ready for review December 11, 2024 22:03
@avi-alpert avi-alpert requested a review from a team as a code owner December 11, 2024 22:03
@avi-alpert avi-alpert marked this pull request as draft December 12, 2024 13:18
@avi-alpert avi-alpert marked this pull request as ready for review December 12, 2024 14:16
@avi-alpert
Copy link
Contributor Author

Approved for next week's release

import { i18n } from 'aws-core-vscode/shared'
import { docGenerationProgressMessage, DocGenerationStep, Mode } from 'aws-core-vscode/amazonqDoc'

describe('Amazon Q Doc', async function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
describe('Amazon Q Doc', async function () {
describe('Amazon Q /doc', async function () {


async waitForText(text: string, waitOverrides?: MessengerOptions) {
await this.waitForEvent(() => {
console.log(this.getChatItems())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh i think the console logs are useful. When you have a set of e2e tests that take a look time to run its usually a lot easier to see why they failed by looking at what chat items are present

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should technically only log chat items when we encounter an error'd test though, otherwise theres just going to be a lot of spam in the logs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this was accidentally added to the commit

@avi-alpert
Copy link
Contributor Author

/runIntegrationTests

@avi-alpert avi-alpert enabled auto-merge (squash) December 12, 2024 15:51
@avi-alpert avi-alpert merged commit 39c8444 into aws:master Dec 12, 2024
27 of 32 checks passed
afterEach(() => {
framework.removeTab(tab.tabID)
framework.dispose()
sinon.restore()
Copy link
Contributor

@justinmk3 justinmk3 Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is sinon needed in e2e tests? if this is part of the qTestingFramework, then I would expect framework.dispose() to take care of it.

jpinkney-aws pushed a commit to jpinkney-aws/aws-toolkit-vscode that referenced this pull request Jan 6, 2025
Add an E2E test for Creating a README using /doc
Moved reusable functions out of featureDev.test.ts to shared test
framework

---

- 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.
karanA-aws pushed a commit to karanA-aws/aws-toolkit-vscode that referenced this pull request Jan 17, 2025
Add an E2E test for Creating a README using /doc
Moved reusable functions out of featureDev.test.ts to shared test
framework

---

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants