2024-08-23 00:38:45 +08:00
|
|
|
import { test, expect } from "@self/tootils";
|
2024-06-11 04:33:28 +08:00
|
|
|
|
|
|
|
test("submit works", async ({ page }) => {
|
|
|
|
await page.getByTestId("textbox").first().focus();
|
2024-10-10 05:12:39 +08:00
|
|
|
await page.getByTestId("textbox").first().fill("test");
|
2024-06-11 04:33:28 +08:00
|
|
|
await page.keyboard.press("Enter");
|
|
|
|
|
|
|
|
await expect(page.getByLabel("Prompt", { exact: true })).toHaveValue("image");
|
|
|
|
});
|
|
|
|
|
|
|
|
test("examples work", async ({ page }) => {
|
|
|
|
await page.getByText("A serious capybara at work, wearing a suit").click();
|
|
|
|
|
|
|
|
await expect(page.getByLabel("Prompt", { exact: true })).toHaveValue("image");
|
|
|
|
});
|