Update index.ts for less generic screenshots
Signed-off-by: Marcin Strzyz <37447884+mastrzyz@users.noreply.github.com>
This commit is contained in:
parent
c0c7f50a06
commit
ff11f972dc
|
|
@ -627,9 +627,10 @@ class ArtifactsRecorder {
|
||||||
|
|
||||||
private _createScreenshotAttachmentPath() {
|
private _createScreenshotAttachmentPath() {
|
||||||
const testFailed = this._testInfo._isFailure();
|
const testFailed = this._testInfo._isFailure();
|
||||||
|
const sanitizedTestName = this._testInfo._fsSanitizedTestName();
|
||||||
const index = this._screenshotOrdinal + 1;
|
const index = this._screenshotOrdinal + 1;
|
||||||
++this._screenshotOrdinal;
|
++this._screenshotOrdinal;
|
||||||
const screenshotPath = this._testInfo.outputPath(`test-${testFailed ? 'failed' : 'finished'}-${index}.png`);
|
const screenshotPath = this._testInfo.outputPath(`test-${testFailed ? 'failed' : 'finished'}-${sanitizedTestName}-${index}.png`);
|
||||||
return screenshotPath;
|
return screenshotPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue