We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9485d32 commit 0147399Copy full SHA for 0147399
lib/image-helper.ts
@@ -270,8 +270,12 @@ export class ImageHelper {
270
const eventStartTime = Date.now().valueOf();
271
let counter = 1;
272
options.timeOutSeconds *= 1000;
273
+ let pathActualImageCounter = resolvePath(this._args.reportsPath, imageName.replace(".", "_actual."));
274
+ const shouldLogEveryImage = checkImageLogType(this._args.testReporter, LogImageType.everyImage);
275
while ((Date.now().valueOf() - eventStartTime) <= options.timeOutSeconds && !result) {
- const pathActualImageCounter = resolvePath(this._args.reportsPath, imageName.replace(".", "_actual_" + counter + "."));
276
+ if (shouldLogEveryImage) {
277
+ pathActualImageCounter = resolvePath(this._args.reportsPath, imageName.replace(".", "_actual_" + counter + "."));
278
+ }
279
pathActualImage = await this._driver.saveScreenshot(pathActualImageCounter);
280
if (!options.keepOriginalImageSize) {
281
await this.clipRectangleImage(options.cropRectangle, pathActualImage);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments