Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions browser_tests/tests/agent/agentReplyDrafts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,9 @@ test.describe('Agent reply drafts', { tag: ['@cloud', '@agent'] }, () => {
const askId = `${MESSAGE_ID}:call-${selection}`
const answeredRequests: Array<{ url: string; selected: string[] }> = []
let releaseAnswer = (): void => {}
const answerCanFinish =
selection === 'cancel'
? new Promise<void>((resolve) => {
releaseAnswer = resolve
})
: Promise.resolve()
const answerCanFinish = new Promise<void>((resolve) => {
releaseAnswer = resolve
})
await page.route(
'**/api/agent/threads/*/asks/*/answer',
async (route) => {
Expand Down Expand Up @@ -300,10 +297,6 @@ test.describe('Agent reply drafts', { tag: ['@cloud', '@agent'] }, () => {
await expect(action).toBeVisible()
await action.click()

test.fail(
selection === 'run',
'The run approval card remains visible after its turn completes, but its action no longer reaches the answer endpoint. The cancel path reaches it again since the agent events socket landed.'
)
await expect
.poll(() => answeredRequests)
.toEqual([
Expand Down
Loading