mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 13:19:05 +03:00
7dd404935b
* chore: add playright config * feat: add playright first examples * feat: add 'test-e2e command' * feat: add createBrain E2E test
14 lines
460 B
TypeScript
14 lines
460 B
TypeScript
import { test } from "@playwright/test";
|
|
|
|
import { login } from "../utils/login";
|
|
|
|
export const createBrainTests = (): void => {
|
|
test("create brain", async ({ page }) => {
|
|
await login(page);
|
|
await page.getByTestId("brain-management-button").first().click();
|
|
await page.getByTestId("add-brain-button").click();
|
|
await page.getByTestId("brain-name").fill("Test brain");
|
|
await page.getByTestId("create-brain-submit-button").click();
|
|
});
|
|
};
|