Skip to content

Commit 4794783

Browse files
authored
Merge pull request #155 from parthlambdatest/Dot-3915
Version Upgradation to 4.0.7
2 parents 99c2ab7 + 2618206 commit 4794783

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.0.6",
3+
"version": "4.0.7",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/snapshotQueue.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,16 @@ export default class Queue {
269269
this.processingSnapshot = snapshot?.name;
270270
let drop = false;
271271

272+
if (!this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
273+
drop = true;
274+
this.ctx.log.info(`Skipping duplicate SmartUI snapshot '${snapshot.name}'. To capture duplicate screenshots, please set the 'delayedUploads' configuration as true in your config file.`);
275+
}
276+
272277
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
273-
if (!this.ctx.config.delayedUpload){
274-
drop = true;
275-
this.ctx.log.debug(`snapshot failed; Same snapshot has been encountered with delayedUploads being false`);
276-
} else {
277-
drop = this.filterExistingVariants(snapshot, this.ctx.config);
278-
}
278+
drop = this.filterExistingVariants(snapshot, this.ctx.config);
279279
}
280280

281-
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
281+
if (snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
282282
this.snapshotNames.push(snapshot.name);
283283
}
284284

0 commit comments

Comments
 (0)