2023-09-18 11:23:56 +03:00
|
|
|
import { test } from "@playwright/test";
|
|
|
|
|
|
|
|
import { login } from "../utils/login";
|
|
|
|
|
2023-10-09 16:23:24 +03:00
|
|
|
export const crawlTests = (): void => {
|
2023-09-29 14:15:37 +03:00
|
|
|
test("it should be able to add url to crawl", async ({ page }) => {
|
2023-09-18 11:23:56 +03:00
|
|
|
await login(page);
|
2023-10-09 16:23:24 +03:00
|
|
|
await page.getByTestId("feed-button").click();
|
2023-09-29 14:15:37 +03:00
|
|
|
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();
|
2023-09-18 11:23:56 +03:00
|
|
|
});
|
|
|
|
};
|