chore: cleanup

This commit is contained in:
Adam
2026-01-19 05:22:35 -06:00
parent f1daf3b430
commit 182c43a78f
7 changed files with 57 additions and 32 deletions

View File

@@ -1,9 +1,7 @@
import { test, expect } from "@playwright/test"
import { createSdk, getWorktree, promptSelector, sessionPath } from "./utils"
import { test, expect } from "./fixtures"
import { promptSelector } from "./utils"
test("can open an existing session and type into the prompt", async ({ page }) => {
const directory = await getWorktree()
const sdk = createSdk(directory)
test("can open an existing session and type into the prompt", async ({ page, sdk, gotoSession }) => {
const title = `e2e smoke ${Date.now()}`
const created = await sdk.session.create({ title }).then((r) => r.data)
@@ -11,11 +9,9 @@ test("can open an existing session and type into the prompt", async ({ page }) =
const sessionID = created.id
try {
await page.goto(sessionPath(directory, sessionID))
await gotoSession(sessionID)
const prompt = page.locator(promptSelector)
await expect(prompt).toBeVisible()
await prompt.click()
await page.keyboard.type("hello from e2e")
await expect(prompt).toContainText("hello from e2e")