test(web): follow the structured abort message in the bash-abort-row scenario
master's new disclosure test pins the literal the abort backport retired; the seeded cancel fixture now carries 'Error: tool call aborted', so the test literals and the ARIA golden follow (replay-verified on Linux).
This commit is contained in:
@@ -56,7 +56,7 @@ describe.skipIf(MODE === 'record')('web e2e: cancelled Bash row disclosure', ()
|
|||||||
const row = page.locator('[data-sample="bash"]').first()
|
const row = page.locator('[data-sample="bash"]').first()
|
||||||
const call = row.locator('xpath=..')
|
const call = row.locator('xpath=..')
|
||||||
await expect.poll(() => row.getAttribute('aria-expanded')).toBe('false')
|
await expect.poll(() => row.getAttribute('aria-expanded')).toBe('false')
|
||||||
await expect.poll(() => call.getByText('Error: command aborted', { exact: true }).count()).toBe(1)
|
await expect.poll(() => call.getByText('Error: tool call aborted', { exact: true }).count()).toBe(1)
|
||||||
await row.click()
|
await row.click()
|
||||||
|
|
||||||
await expect.poll(() => row.getAttribute('aria-expanded')).toBe('true')
|
await expect.poll(() => row.getAttribute('aria-expanded')).toBe('true')
|
||||||
@@ -64,7 +64,7 @@ describe.skipIf(MODE === 'record')('web e2e: cancelled Bash row disclosure', ()
|
|||||||
await call.getByText('OUT', { exact: true }).waitFor()
|
await call.getByText('OUT', { exact: true }).waitFor()
|
||||||
await call.getByText('Wait until cancellation', { exact: false }).waitFor()
|
await call.getByText('Wait until cancellation', { exact: false }).waitFor()
|
||||||
await call.getByText('setInterval(() => {}, 1000)', { exact: false }).waitFor()
|
await call.getByText('setInterval(() => {}, 1000)', { exact: false }).waitFor()
|
||||||
await expect.poll(() => call.getByText('Error: command aborted', { exact: true }).count()).toBe(2)
|
await expect.poll(() => call.getByText('Error: tool call aborted', { exact: true }).count()).toBe(2)
|
||||||
|
|
||||||
const snapshot = (await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd))
|
const snapshot = (await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd))
|
||||||
// The borrowed fixture's UTC date is still the previous day in PDT;
|
// The borrowed fixture's UTC date is still the previous day in PDT;
|
||||||
|
|||||||
@@ -14,10 +14,10 @@
|
|||||||
- img
|
- img
|
||||||
- img
|
- img
|
||||||
- text: Context injection
|
- text: Context injection
|
||||||
- 'button "Failed Bash Error: command aborted" [expanded]':
|
- 'button "Failed Bash Error: tool call aborted" [expanded]':
|
||||||
- img
|
- img
|
||||||
- text: "Failed Bash Error: command aborted"
|
- text: "Failed Bash Error: tool call aborted"
|
||||||
- text: "IN { \"command\": \"node -e \\\"require('node:fs').writeFileSync('started.txt', 'started'); setInterval(() => {}, 1000)\\\"\", \"description\": \"Wait until cancellation\" } OUT Error: command aborted"
|
- text: "IN { \"command\": \"node -e \\\"require('node:fs').writeFileSync('started.txt', 'started'); setInterval(() => {}, 1000)\\\"\", \"description\": \"Wait until cancellation\" } OUT Error: tool call aborted"
|
||||||
- button "Inspect"
|
- button "Inspect"
|
||||||
- 'button "Failed Bash Error: tool call aborted before dispatch"':
|
- 'button "Failed Bash Error: tool call aborted before dispatch"':
|
||||||
- img
|
- img
|
||||||
|
|||||||
Reference in New Issue
Block a user