Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f267933

Browse files
authoredJun 16, 2025
Merge pull request #300 from LambdaTest/stage
Release PR version 4.1.14
2 parents 1718d90 + 4eaca4f commit f267933

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
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.1.13",
3+
"version": "4.1.14",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

‎src/lib/processSnapshot.ts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,21 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
346346
url: requestUrl,
347347
resourceType: request.resourceType(),
348348
}
349-
350-
if (!discoveryErrors.browsers[globalBrowser]){
351-
discoveryErrors.browsers[globalBrowser] = {};
352-
}
353-
354-
// Check if the discoveryErrors.browsers[globalBrowser] exists, and if not, initialize it
355-
if (discoveryErrors.browsers[globalBrowser] && !discoveryErrors.browsers[globalBrowser][globalViewport]) {
356-
discoveryErrors.browsers[globalBrowser][globalViewport] = [];
357-
}
358-
359-
// Dynamically push the data into the correct browser and viewport
360-
if (discoveryErrors.browsers[globalBrowser]) {
361-
discoveryErrors.browsers[globalBrowser][globalViewport]?.push(data);
349+
350+
if ((response.status() >= 400 && response.status() < 600) && response.status() !== 0) {
351+
if (!discoveryErrors.browsers[globalBrowser]){
352+
discoveryErrors.browsers[globalBrowser] = {};
353+
}
354+
355+
// Check if the discoveryErrors.browsers[globalBrowser] exists, and if not, initialize it
356+
if (discoveryErrors.browsers[globalBrowser] && !discoveryErrors.browsers[globalBrowser][globalViewport]) {
357+
discoveryErrors.browsers[globalBrowser][globalViewport] = [];
358+
}
359+
360+
// Dynamically push the data into the correct browser and viewport
361+
if (discoveryErrors.browsers[globalBrowser]) {
362+
discoveryErrors.browsers[globalBrowser][globalViewport]?.push(data);
363+
}
362364
}
363365
}
364366
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.