You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(amazonq): Inline test after function addition, writeToTextEditor fix, and package.json pathing fix (#7800)
## Problem
The inline test cannot be run consecutively with other tests in our
suite since it switches its focus to the editorView and textEditorView.
Each time the inline test is run, a new driver was launched with caused
a new VSCode instance to instantiate.
The `package.json` should only target the `.test.js` files. Right now it
targets all .js files in the directory.
The `writeToTextEditor` function is faulty since it is wrongly indexed
due to its element not being accessed before counting and referencing
its indices within code.
## Solution
Implemented an `after` function which correctly switches back to our
webviewView (AmazonQ). Added the true inline test into the suite and
fixed driver problem.
Changed the path referenced in the `package.json` to `.test.js` files.
Fixed the `writeToTextEditor` function such that it includes a "dummy"
space input into the textEditor and then counts the number of indices of
lines. This then writes the desired text within the correct line without
problems.
---
- 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.
0 commit comments