mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 05:05:09 +03:00
77e135fb5b
- Brain selection - Chat deletion - Unplug chat - Plug chat
19 lines
763 B
TypeScript
19 lines
763 B
TypeScript
import { test } from "@playwright/test";
|
|
|
|
import { login } from "../utils/login";
|
|
|
|
export const crawlTests = (): void => {
|
|
test("it should be able to add url to crawl", async ({ page }) => {
|
|
await login(page);
|
|
await page.getByTestId("feed-button").click();
|
|
await page.getByTestId("feed-card").isVisible();
|
|
await page.getByTestId("urlToCrawlInput").click();
|
|
await page.getByTestId("urlToCrawlInput").fill("https://quivr.app");
|
|
await page.getByTestId("urlToCrawlInput").press("Enter");
|
|
await page.getByTestId("urlToCrawlInput").fill("https://google.fr");
|
|
await page.getByTestId("urlToCrawlInputSubmit").click();
|
|
await page.getByTestId("submit-feed-button").click();
|
|
await page.getByTestId("feed-card").isHidden();
|
|
});
|
|
};
|