Skip to content

Commit cca8458

Browse files
committed
adding the print at the body
1 parent 315da40 commit cca8458

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
import { Workbench, By, WebviewView } from 'vscode-extension-tester'
6-
import { findItemByText, sleep, waitForElements } from './generalUtils'
5+
import { Workbench, By, WebviewView, WebView } from 'vscode-extension-tester'
6+
import { findItemByText, printElementHTML, sleep, waitForElements } from './generalUtils'
77
import { testContext } from './testContext'
88
import { isRunningInGitHubActionsE2E } from './ciUtils'
99
import { authenticateForCI } from './ciOidcClient'
@@ -38,6 +38,8 @@ export async function signInToAmazonQ(): Promise<void> {
3838
console.log('THIS WORKED 5')
3939
testContext.webviewView = webviewView
4040
console.log('IT WORKED')
41+
const body = webviewView.findElement(By.css('body'))
42+
printElementHTML(body)
4143
return
4244
}
4345

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ import { sleep } from './generalUtils'
1212
*/
1313
export async function closeAllTabs(webview: WebviewView): Promise<void> {
1414
const closeButtons = await webview.findWebElements(By.css('.mynah-tabs-close-button'))
15+
console.log('THIS WORKED 6')
1516

1617
for (const button of closeButtons) {
1718
await button.click()
1819
await sleep(500)
1920
}
2021

2122
const tabsContainer = await webview.findWebElements(By.css('.mynah-tabs-container'))
23+
console.log('THIS WORKED 7')
2224
const allClosed =
2325
tabsContainer.length === 1 ||
2426
(await tabsContainer[0].findElements(By.css('.mynah-tab-item-label'))).length === 0

0 commit comments

Comments
 (0)