Skip to content

Commit 6a8e5c9

Browse files
committed
add debug logs
1 parent 59ea3dc commit 6a8e5c9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/schemaValidation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ const WebStaticConfigSchema: JSONSchemaType<WebStaticConfig> = {
224224
},
225225
pageEvent: {
226226
type: "string",
227+
enum: ['load', 'domcontentloaded'],
227228
errorMessage: "pageEvent can be load, domcontentloaded"
228229
},
229230
},

src/lib/screenshot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async function captureScreenshotsForConfig(
2222
let waitUntilEvent = pageEvent || process.env.SMARTUI_PAGE_WAIT_UNTIL_EVENT || 'load';
2323

2424
let pageOptions = { waitUntil: waitUntilEvent, timeout: ctx.config.waitForPageRender || constants.DEFAULT_PAGE_LOAD_TIMEOUT };
25+
ctx.log.debug(`url: ${url} pageOptions: ${JSON.stringify(pageOptions)}`);
2526
let ssId = name.toLowerCase().replace(/\s/g, '_');
2627
let context: BrowserContext;
2728
let contextOptions: Record<string, any> = {};

0 commit comments

Comments
 (0)