chore: update test
This commit is contained in:
parent
e7706670a9
commit
c630841e8a
1 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
import { seedSessionTask, withSession } from "../actions"
|
import { seedSessionTask, withSession } from "../actions"
|
||||||
import { test, expect } from "../fixtures"
|
import { test, expect } from "../fixtures"
|
||||||
import { inputMatch } from "../prompt/mock"
|
import { inputMatch } from "../prompt/mock"
|
||||||
import { promptSelector } from "../selectors"
|
|
||||||
|
|
||||||
test("task tool child-session link does not trigger stale show errors", async ({ page, llm, project }) => {
|
test("task tool child-session link does not trigger stale show errors", async ({ page, llm, project }) => {
|
||||||
test.setTimeout(120_000)
|
test.setTimeout(120_000)
|
||||||
|
|
@ -30,15 +29,16 @@ test("task tool child-session link does not trigger stale show errors", async ({
|
||||||
|
|
||||||
await project.gotoSession(session.id)
|
await project.gotoSession(session.id)
|
||||||
|
|
||||||
const link = page
|
const card = page
|
||||||
.locator("a.subagent-link")
|
.locator('[data-component="task-tool-card"]')
|
||||||
.filter({ hasText: /open child session/i })
|
.filter({ hasText: /open child session/i })
|
||||||
.first()
|
.first()
|
||||||
await expect(link).toBeVisible({ timeout: 30_000 })
|
await expect(card).toBeVisible({ timeout: 30_000 })
|
||||||
await link.click()
|
await card.click()
|
||||||
|
|
||||||
await expect(page).toHaveURL(new RegExp(`/session/${child.sessionID}(?:[/?#]|$)`), { timeout: 30_000 })
|
await expect(page).toHaveURL(new RegExp(`/session/${child.sessionID}(?:[/?#]|$)`), { timeout: 30_000 })
|
||||||
await expect(page.locator(promptSelector)).toBeVisible({ timeout: 30_000 })
|
await expect(page.getByText("Subagent sessions cannot be prompted.")).toBeVisible({ timeout: 30_000 })
|
||||||
|
await expect(page.getByRole("button", { name: "Back to main session." })).toBeVisible({ timeout: 30_000 })
|
||||||
await expect.poll(() => errs, { timeout: 5_000 }).toEqual([])
|
await expect.poll(() => errs, { timeout: 5_000 }).toEqual([])
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue