Skip to content

Commit 920feef

Browse files
code cleanup
1 parent 77c2b32 commit 920feef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
285285
}
286286
if (ctx.config.cliEnableJavaScript && fullPage) await page.evaluate(scrollToBottomAndBackToTop, { frequency: 100, timing: ctx.config.scrollTime });
287287

288-
ctx.log.debug(`Calculated content height: ${height}`);
289-
290288
try {
291289
await page.waitForLoadState('networkidle', { timeout: 5000 });
292290
ctx.log.debug('Network idle 500ms');
@@ -326,6 +324,7 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
326324
}
327325
return Math.max(...measurements);
328326
});
327+
ctx.log.debug(`Calculated content height: ${height}`);
329328

330329
let locators: Array<Locator> = [];
331330
if (!Array.isArray(processedOptions[ignoreOrSelectBoxes][viewportString])) processedOptions[ignoreOrSelectBoxes][viewportString] = []

0 commit comments

Comments
 (0)