First Release of Claw3D (#11)
Co-authored-by: iamlukethedev <iamlukethedev@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { stubStudioRoute } from "./helpers/studioRoute";
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await stubStudioRoute(page);
|
||||
});
|
||||
|
||||
test("settings route shows connect UI while disconnected and can return to chat", async ({ page }) => {
|
||||
await page.goto("/agents/main/settings");
|
||||
|
||||
await expect(page.getByRole("button", { name: "Back to chat" })).toBeVisible();
|
||||
await expect(page.getByLabel("Upstream URL")).toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "Back to chat" }).click();
|
||||
await expect
|
||||
.poll(() => new URL(page.url()).pathname, {
|
||||
message: "Expected back button to return to chat route.",
|
||||
})
|
||||
.toBe("/");
|
||||
});
|
||||
Reference in New Issue
Block a user