Skip to content

Commit c6bfb44

Browse files
authored
Merge pull request #182 from LambdaTest/fix-conflict
Back Sync
2 parents 2af828a + f401911 commit c6bfb44

File tree

4 files changed

+10
-1
lines changed

4 files changed

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

src/lib/processSnapshot.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
167167
return false;
168168
}
169169

170+
if (options.loadDomContent) {
171+
processedOptions.loadDomContent = true;
172+
}
173+
170174
if (options.web && Object.keys(options.web).length) {
171175
processedOptions.web = {};
172176

src/lib/schemaValidation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
360360
},
361361
required: ["devices"],
362362
errorMessage: "Invalid snapshot options; mobile must include devices property."
363+
},
364+
loadDomContent: {
365+
type: "boolean",
366+
errorMessage: "Invalid snapshot options; loadDomContent must be a boolean"
363367
}
364368
},
365369
additionalProperties: false

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export interface Snapshot {
104104
fullPage?: boolean,
105105
orientation?: string
106106
},
107+
loadDomContent?: boolean;
107108
ignoreType?: string[]
108109
}
109110
}

0 commit comments

Comments
 (0)