mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 10:02:30 +03:00
7dd404935b
* chore: add playright config * feat: add playright first examples * feat: add 'test-e2e command' * feat: add createBrain E2E test
20 lines
623 B
TypeScript
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");
|
|
});
|
|
};
|