Skip to content

Commit 2e3bd27

Browse files
author
Jay Dhameliya
committed
Fix failure screenshots filename
1 parent 1775b00 commit 2e3bd27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/tools/tester/VSCodeTester.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ export class VSCodeTester {
175175
}
176176

177177
if (result !== value) {
178-
await this.browser.takeScreenshot(result)
178+
const filename = `test_failure_${new Date().toISOString().replace(/[:.]/g, '-')}`
179+
await this.browser.takeScreenshot(filename)
179180
} else {
180181
if (message !== '') {
181182
console.log(`Assertion passed: ${message}`)

0 commit comments

Comments
 (0)