quivr/frontend/e2e/tests/upload.ts
Mamadou DICKO 7dd404935b
feat(e2e): add playright config and createBrain e2e test (#1177)
* chore: add playright config

* feat: add playright first examples

* feat: add 'test-e2e command'

* feat: add createBrain E2E test
2023-09-18 10:23:56 +02:00

20 lines
623 B
TypeScript

import { test } from "@playwright/test";
import { login } from "../utils/login";
export const uploadTests = (): void => {
test("upload", async ({ page }) => {
await login(page);
await page.goto("/chat");
await page.getByTestId("upload-button").click();
await page
.getByRole("button", {
name: "Drag and drop files here, or click to browse",
})
.click();
await page.getByPlaceholder("Insert website URL").click();
await page.getByPlaceholder("Insert website URL").fill("https://quivr.app");
await page.getByPlaceholder("Insert website URL").press("Enter");
});
};