test(web): match the terminal close response without unsafe JSON access
This commit is contained in:
1 parent
51a9382b61
commit
d1e93e5482
1 file changed
+1
-1
@@ -203,7 +203,7 @@ describe.skipIf(MODE === 'record')('web e2e: details panel follows the current S
|
||||
page.waitForResponse('**/api/terminal/close'),
|
||||
blankColumn.locator('[data-dockkit-tab][aria-selected="true"] [data-dockkit-tab-close]').click(),
|
||||
])
|
||||
expect((await closed.json()).result.ok).toBe(true)
|
||||
expect(await closed.json()).toMatchObject({ result: { ok: true } })
|
||||
expect(scaffold.ctx.terminalController.list(agent.id)).toEqual([])
|
||||
await blankColumn.locator('[data-dockkit-tab]').filter({ hasText: 'before-chat.md' }).click()
|
||||
await compareOrRefreshGolden(BLANK_EXPECTED, [
|
||||
|
||||
Reference in new issue
Block a user