test(app): stabilize migrated e2e suite

This commit is contained in:
Kit Langton 2026-04-02 01:09:08 -04:00
commit b782650dfe
5 changed files with 24 additions and 6 deletions

View file

@ -34,6 +34,8 @@ test("dialog edit project updates name and startup script", async ({ page, proje
await expect
.poll(
async () => {
await page.reload()
await openSidebar(page)
const reopened = await open()
const value = await reopened.getByLabel("Name").inputValue()
const next = await reopened.getByLabel("Workspace startup script").inputValue()

View file

@ -12,6 +12,7 @@ import {
clickMenuItem,
confirmDialog,
openSidebar,
openProjectMenu,
openWorkspaceMenu,
resolveSlug,
setWorkspacesEnabled,
@ -19,7 +20,7 @@ import {
waitDir,
waitSlug,
} from "../actions"
import { dropdownMenuContentSelector, inlineInputSelector, workspaceItemSelector } from "../selectors"
import { inlineInputSelector, workspaceItemSelector } from "../selectors"
import { dirSlug } from "../utils"
async function setupWorkspaceTest(page: Page, project: { slug: string; trackDirectory: (directory: string) => void }) {