Skip to content

Commit 39c1afe

Browse files
committed
wait 5s after load and skip assembly animation when capturing screenshots
1 parent d90b3af commit 39c1afe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/capture-screenshots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const MANIFEST_PATH = join(STATIC_DIR, 'manifest.json');
1919
const BASE_URL = 'https://view.pathsim.org';
2020
const VIEWPORT = { width: 1000, height: 600 };
2121
const DEVICE_SCALE_FACTOR = 1;
22-
const SETTLE_DELAY = 1500;
22+
const SETTLE_DELAY = 5000;
2323
const THEMES = ['dark', 'light'];
2424

2525
async function captureScreenshot(browser, filename, theme) {
2626
const basename = filename.replace('.json', '');
27-
const url = `${BASE_URL}?model=examples/${filename}&theme=${theme}`;
27+
const url = `${BASE_URL}?model=examples/${filename}&theme=${theme}&fancyloading=false`;
2828
console.log(` ${basename} ${theme}...`);
2929

3030
const page = await browser.newPage();

0 commit comments

Comments
 (0)