Skip to content

Commit

Permalink
Adding a screenshot to a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Sep 10, 2024
1 parent 15e9af8 commit 024f26c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aatp/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function getTWRBuffer(page) {
return ret.trimEnd()
})
ret = ret.substring(checkedC)
console.log("TWR: ", ret)
console.log(`TWR.substring(${checkedC}):`, ret)
checkedC = ret.length
return ret
}
Expand Down
2 changes: 2 additions & 0 deletions aatp/ui/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ insecure=true`)
await expect(page.locator('#t0')).toBeHidden()
await expect(page.locator('.pane')).toHaveCount(1)
await expect(page.locator('.windows-container')).toBeVisible()
await sleep(100)
await page.screenshot({path: '/result/connection_reseted.png'})
await waitForTWROutput(page, /foo:.* over WebRTC/, 2000)
})
test('how a gate handles disconnect', async() => {
Expand Down

0 comments on commit 024f26c

Please sign in to comment.