fix up tests

This commit is contained in:
Richard Kuo (Danswer)
2024-12-04 17:19:16 -08:00
parent 0a35422d1d
commit 4b6a4c6bbf
2 changed files with 4 additions and 5 deletions

View File

@@ -12,5 +12,8 @@ test(
await expect(page.locator("p.text-sm").nth(0)).toHaveText(
/^Assistants are a way to build/
);
const generalTextLocator = page.locator("tr.border-b td").nth(1);
await expect(generalTextLocator.locator("p.text")).toHaveText("General");
}
);

View File

@@ -28,10 +28,6 @@ test(
await page.waitForURL("http://localhost:3000/chat");
// Create the locator (no waiting happens here)
const textarea = page.locator('textarea[placeholder="Send a message "]');
// Explicitly wait for the textarea to be visible
await expect(textarea).toBeVisible();
await page.getByPlaceholder("Send a message ");
}
);