quivr/frontend/e2e/tests/createBrain.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

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();
});
};