-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ccfe1b
commit e0ae216
Showing
14 changed files
with
107 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
import { chatTests } from "./tests/chat"; | ||
import { createBrainTests } from "./tests/createBrain"; | ||
import { uploadTests } from "./tests/upload"; | ||
|
||
test.describe(createBrainTests); | ||
|
||
test.describe.skip(uploadTests); | ||
|
||
test.describe.skip(chatTests); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
import { login } from "../utils/login"; | ||
|
||
export const chatTests = (): void => { | ||
test("chat", async ({ page }) => { | ||
await login(page); | ||
await page.goto("/chat"); | ||
await page.getByRole("combobox").locator("div").nth(2).click(); | ||
await page.getByRole("combobox").fill("Hello"); | ||
await page.getByTestId("submit-button").click(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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"); | ||
}); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters