Skip to content

Commit 79b1b3a

Browse files
committed
fix: PR comments
1 parent 0d506f1 commit 79b1b3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/amazonq/test/e2e_new/amazonq/tests/inline.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ describe('Amazon Q Inline Completion / Chat Functionality', function () {
2828
// Switch back to Webview Iframe when dealing with external webviews from Amazon Q.
2929
await editorView.closeAllEditors()
3030
await webviewView.switchToFrame()
31-
testContext.webviewView = webviewView
3231
})
3332
it('Inline Test Shortcut', async () => {
3433
await writeToTextEditor(textEditor, 'def factorial(n):')

packages/amazonq/test/e2e_new/amazonq/utils/generalUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export async function createNewTextFile(workbench: Workbench, editorView: Editor
157157
* @returns Promise<void>
158158
*/
159159
export async function writeToTextEditor(textEditor: TextEditor, text: string): Promise<void> {
160+
// We require a "dummy" space to be written such that we can properly index the
161+
// number of lines to register the textEditor.
160162
await textEditor.typeTextAt(1, 1, ' ')
161163
const currentLines = await textEditor.getNumberOfLines()
162164
await textEditor.typeTextAt(currentLines, 1, text)

0 commit comments

Comments
 (0)