File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 > = { } ;
You can’t perform that action at this time.
0 commit comments