Skip to content

Conversation

@laura-codess
Copy link

Changes

Adding the simple chat prompt 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.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@laura-codess laura-codess requested a review from a team as a code owner July 11, 2025 15:34
@github-actions
Copy link

  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@laura-codess laura-codess changed the base branch from master to feature/ui-e2e-tests July 11, 2025 15:41
@laura-codess laura-codess marked this pull request as draft July 11, 2025 19:55
@Hweinstock Hweinstock marked this pull request as ready for review July 14, 2025 18:35
Copy link
Contributor

@Hweinstock Hweinstock left a comment

Choose a reason for hiding this comment

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

Nice start! Especially on the timeouts!

```

## Language Server Debugging

Copy link
Contributor

Choose a reason for hiding this comment

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

are these automatically applied by the linter?

}
},
"aws-schemas-registry": {
"aws-sagemaker-code-editor": {
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems unrelated to your changes?

Copy link
Author

Choose a reason for hiding this comment

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

yes this is unrelated to my changes, i think they appeared when i ran "npm install" when we were resolving the merge conflicts, should i delete them?

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 we able to resolve this by rebasing. If not, we can manually take the changes out of the PR since I'm unsure of the side effects.

await workbench.executeCommand('Amazon Q: Open Chat')

await new Promise((resolve) => setTimeout(resolve, 15000))
// need this timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

I know its somewhat of a mystery, but it could be worth investigating why we need these timeouts? Maybe we can find another example of someone running into the same issue and link that here.


// AFTER AUTHENTICATION WE MUST RELOAD THE WEBVIEW BECAUSE MULTIPLE WEVIEWS CANNOT BE READ AT THE SAME TIME
const editorView = workbench.getEditorView()
console.log('editorview successfully created')
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume these are just debugging logs? We should be careful of this becoming super noisy, but if its helpful we should keep them. I imagine a subset of these are helpful?

for (const button of closeButtons) {
await button.click()
// small delay to ensure the tab closes properly
await new Promise((resolve) => setTimeout(resolve, 500))
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use waitForElement here?

I can check how many elements there are in our specific conversation container. If there is 2 elements,
we can assume that the chat response has been generated. The challenge is, we must grab the latest
conversation container, as there can be multiple conversations in the webview. */
async function waitForChatResponse(webview: WebviewView, timeout = 15000): Promise<boolean> {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, I like the use of a default here! It helps simplify the interface for the common case.

test.log Outdated
@@ -0,0 +1,108 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

did you accidentally recommit the test.log?

@laura-codess laura-codess force-pushed the feature/ui-e2e-tests branch from 8cf315a to 5da6336 Compare July 15, 2025 16:06
@Hweinstock Hweinstock merged commit 687427c into aws:feature/ui-e2e-tests Jul 16, 2025
21 of 22 checks passed
@laura-codess laura-codess deleted the feature/ui-e2e-tests branch July 17, 2025 17:08
laura-codess added a commit to laura-codess/aws-toolkit-vscode that referenced this pull request Aug 10, 2025
## Changes

Adding the simple chat prompt 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.
laura-codess added a commit to laura-codess/aws-toolkit-vscode that referenced this pull request Aug 11, 2025
## Changes

Adding the simple chat prompt 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.
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.

2 participants