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,11 +1,9 @@
import { test, expect } from "@playwright/test"
import { dirPath, dirSlug, getWorktree, promptSelector } from "./utils"
test("project route redirects to /session", async ({ page }) => {
const directory = await getWorktree()
const slug = dirSlug(directory)
import { test, expect } from "./fixtures"
import { dirPath, promptSelector } from "./utils"
test("project route redirects to /session", async ({ page, directory, slug }) => {
await page.goto(dirPath(directory))
await expect(page).toHaveURL(new RegExp(`/${slug}/session`))
await expect(page.locator(promptSelector)).toBeVisible()
})