mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 10:02:30 +03:00
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");
|
||
|
});
|
||
|
};
|