chore: cleanup
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user