Skip to content

Commit a741c58

Browse files
committed
fix: updated helper for pinContext and fixed css issues
1 parent 0d7cfd0 commit a741c58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/amazonq/test/e2e_new/amazonq/helpers/pinContextHelper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export async function clickPinContextButton(webview: WebviewView): Promise<void>
3636
* @returns Promise<boolean> Returns the items as a WebElement List and the labels in a string array
3737
*/
3838
export async function getPinContextMenuItems(webview: WebviewView): Promise<{ items: WebElement[]; labels: string[] }> {
39-
await sleep(1000)
4039
const items = await webview.findElements(
4140
By.xpath(`//div[contains(@class, 'mynah-detailed-list-item') and contains(@class, 'mynah-ui-clickable-item')]`)
4241
)
@@ -65,7 +64,6 @@ export async function getPinContextMenuItems(webview: WebviewView): Promise<{ it
6564
* NOTE: To find all possible text labels, you can call getPinContextMenuItems
6665
*/
6766
export async function clickPinContextMenuItem(webview: WebviewView, itemName: string): Promise<void> {
68-
await sleep(100)
6967
const item = await waitForElement(
7068
webview,
7169
By.xpath(
@@ -81,7 +79,6 @@ export async function clickPinContextMenuItem(webview: WebviewView, itemName: st
8179
* @returns Promise<boolean> Returns the items as a WebElement List and the labels in a string array
8280
*/
8381
export async function getSubMenuItems(webview: WebviewView): Promise<{ items: WebElement[]; labels: string[] }> {
84-
await sleep(100)
8582
const items = await webview.findElements(
8683
By.xpath(`//div[contains(@class, 'mynah-detailed-list-item') and contains(@class, 'mynah-ui-clickable-item')]`)
8784
)
@@ -109,7 +106,7 @@ export async function getSubMenuItems(webview: WebviewView): Promise<{ items: We
109106
* NOTE: To find all possible text labels, you can call getPinContextMenuItems
110107
*/
111108
export async function clickSubMenuItem(webview: WebviewView, itemName: string): Promise<void> {
112-
await sleep(100)
109+
await sleep(0)
113110
const item = await waitForElement(
114111
webview,
115112
By.xpath(

0 commit comments

Comments
 (0)