quivr/frontend/e2e/tests/upload.ts
Mamadou DICKO a1e6d400b2
test: add e2e for crawling (#1288)
* feat: update translations

* fix: update createBrain tests

* test: add crawl e2e test
2023-09-29 13:15:37 +02:00

19 lines
766 B
TypeScript

import { test } from "@playwright/test";
import { login } from "../utils/login";
export const uploadTests = (): void => {
test("it should be able to add url to crawl", async ({ page }) => {
await login(page);
await page.getByTestId("upload-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();
});
};