Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions webapp/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ export async function sendChatMessageAndWaitForResponse(page, message) {
await page.locator('#chat-input').click();
await page.locator('#chat-input').fill(message);

const responsePrompise = page.waitForResponse(
const responsePromise = page.waitForResponse(
(response) => response.url().search('chats/.*/messages') !== -1 && response.status() === 200,
{ timeout: LLMresponsetimeout },
);

await page.locator('#chat-input').press('Enter');

// Wait for LLM to respond to request by executing the plan
await responsePrompise;
await responsePromise;
}

export async function openPluginPopUp(page, pluginIdentifierText) {
Expand Down Expand Up @@ -113,7 +113,7 @@ export async function disablePluginAndClosePopUp(page) {
export async function executePlanAndWaitForResponse(page) {
await page.waitForTimeout(ChatStateChangeWait);

const responsePrompise = page.waitForResponse(
const responsePromise = page.waitForResponse(
(response) => response.url().search('chats/.*/plan') !== -1 && response.status() === 200,
{ timeout: LLMresponsetimeout },
);
Expand All @@ -123,7 +123,7 @@ export async function executePlanAndWaitForResponse(page) {
buttonLocator.click();

// Wait for LLM to respond to request by executing the plan
await responsePrompise;
await responsePromise;
}

export async function getLastChatMessageContentsAsStringWHistory(page, chatHistoryItems) {
Expand Down
Loading