Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed Nov 13, 2024
1 parent 7ee2f31 commit a38d5d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __visual_tests__/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export async function assertScreenshot(page: Page, screenshotName: string, brows
export async function loadWidget(page: Page) {
await page.click(WidgetComponentIds.WIDGET_BUTTON);
// NOTE: below fails sometimes in CI.
// const widgetWindow = page.locator(WidgetComponentIds.MESSAGE_INPUT);
// await widgetWindow.waitFor({ state: 'visible' });
await page.waitForTimeout(3000);
const widgetWindow = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS);
await widgetWindow.waitFor({ state: 'visible' });
// await page.waitForTimeout(3000);
}

export async function sendTextMessage(page: Page, text: string, waitTime = 1000) {
Expand Down

0 comments on commit a38d5d5

Please sign in to comment.