Skip to content

Commit 7417367

Browse files
committed
Merge branch 'implement_rules' of https://github.com/laura-codess/aws-toolkit-vscode into implement_rules
2 parents d6bbd22 + 5816697 commit 7417367

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Amazon Q Rules Functionality', function () {
3030
const workbench = testContext.workbench
3131
await workbench.executeCommand('Amazon Q: Open Chat')
3232

33-
// sleep is needed because the workbench needs some time to load
33+
// sleep is needed because the workbench needs some time to load
3434
await sleep(5000)
3535
const activityBar = new ActivityBar()
3636
const amazonQControl = await activityBar.getViewControl('Amazon Q')

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function sleep(timeout: number) {
2020
* @param timeout The timeout in milliseconds (Optional)
2121
* @returns Promise<WebElement> Returns the element found
2222
*/
23-
export async function waitForElement(webview: WebviewView, locator: By, timeout: number = 8000): Promise<WebElement> {
23+
export async function waitForElement(webview: WebviewView, locator: By, timeout?: number): Promise<WebElement> {
2424
const driver = webview.getDriver()
2525
await driver.wait(until.elementsLocated(locator), timeout)
2626
return await webview.findWebElement(locator)
@@ -33,11 +33,7 @@ export async function waitForElement(webview: WebviewView, locator: By, timeout:
3333
* @param timeout The timeout in milliseconds (Optional)
3434
* @returns Promise<WebElement[]> Returns an array of elements found
3535
*/
36-
export async function waitForElements(
37-
webview: WebviewView,
38-
locator: By,
39-
timeout: number = 8000
40-
): Promise<WebElement[]> {
36+
export async function waitForElements(webview: WebviewView, locator: By, timeout?: number): Promise<WebElement[]> {
4137
const driver = webview.getDriver()
4238
await driver.wait(until.elementsLocated(locator), timeout)
4339
return await webview.findWebElements(locator)

0 commit comments

Comments
 (0)