Skip to content

Commit e42acfa

Browse files
authored
Merge pull request #88 from pinanks/increase-resource-size
Increase resource size
2 parents 10a5581 + 628126f commit e42acfa

File tree

2 files changed

+3
-3
lines changed

2 files changed

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

src/lib/processSnapshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { scrollToBottomAndBackToTop, getRenderViewports } from "./utils.js"
33
import { chromium, Locator } from "@playwright/test"
44
import constants from "./constants.js";
55

6-
const MAX_RESOURCE_SIZE = 10 * (1024 ** 2); // 10MB
6+
const MAX_RESOURCE_SIZE = 15 * (1024 ** 2); // 15MB
77
var ALLOWED_RESOURCES = ['document', 'stylesheet', 'image', 'media', 'font', 'other'];
88
const ALLOWED_STATUSES = [200, 201];
99
const REQUEST_TIMEOUT = 10000;
@@ -50,7 +50,7 @@ export default async (snapshot: Snapshot, ctx: Context): Promise<Record<string,
5050
} else if (cache[requestUrl]) {
5151
ctx.log.debug(`Handling request ${requestUrl}\n - skipping already cached resource`);
5252
} else if (body.length > MAX_RESOURCE_SIZE) {
53-
ctx.log.debug(`Handling request ${requestUrl}\n - skipping resource larger than 5MB`);
53+
ctx.log.debug(`Handling request ${requestUrl}\n - skipping resource larger than 15MB`);
5454
} else if (!ALLOWED_STATUSES.includes(response.status())) {
5555
ctx.log.debug(`Handling request ${requestUrl}\n - skipping disallowed status [${response.status()}]`);
5656
} else if (!ALLOWED_RESOURCES.includes(request.resourceType())) {

0 commit comments

Comments
 (0)