mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 12:59:52 +00:00
test(app): cover migrated v2 operations
This commit is contained in:
parent
251d26adf3
commit
e0285d3f83
3 changed files with 2 additions and 4 deletions
|
|
@ -10,7 +10,6 @@ const title = "Hidden terminal regression"
|
|||
test("unmounts the terminal panel while it is hidden", async ({ page }) => {
|
||||
await page.setViewportSize({ width: 1400, height: 900 })
|
||||
await mockOpenCodeServer(page, {
|
||||
protocol: "v2",
|
||||
directory,
|
||||
project: {
|
||||
id: projectID,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ test("keeps the terminal session alive when switching session tabs in a workspac
|
|||
const connection = new URL(connections[0]!)
|
||||
expect(connection.pathname).toBe(`/api/pty/${ptyID}/connect`)
|
||||
expect(connection.searchParams.get("location[directory]")).toBe(directory)
|
||||
expect(connection.searchParams.get("ticket")).toBeNull()
|
||||
expect(connection.searchParams.get("ticket")).toBe("e2e-ticket")
|
||||
await writeProbe(page)
|
||||
|
||||
await switchTab(page, titleB)
|
||||
|
|
@ -66,7 +66,6 @@ async function readProbe(page: Page) {
|
|||
|
||||
async function setup(page: Page) {
|
||||
await mockOpenCodeServer(page, {
|
||||
protocol: "v2",
|
||||
directory,
|
||||
project: {
|
||||
id: projectID,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ const directory = "C:/OpenCode/NewProject"
|
|||
|
||||
test("creates a session in a new project and selects its model", async ({ page }) => {
|
||||
await mockOpenCodeServer(page, {
|
||||
protocol: "v1",
|
||||
protocol: "v2",
|
||||
directory,
|
||||
project: {
|
||||
id: "proj_model_selection_flow",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue