mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
chore: fix code style
This commit is contained in:
committed by
github-actions[bot]
parent
abdb958187
commit
97b967dd30
@@ -9,16 +9,18 @@ for (const [file, options] of Object.entries(schema)) {
|
||||
fs.mkdirSync(`images/${directory}`, { recursive: true })
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const browser = await puppeteer.launch();
|
||||
const page = await browser.newPage();
|
||||
await page.goto(`http://localhost:8000/${options.url}`, { waitUntil: 'networkidle2' });
|
||||
const element = await page.waitForSelector(options.selector);
|
||||
;(async () => {
|
||||
const browser = await puppeteer.launch()
|
||||
const page = await browser.newPage()
|
||||
await page.goto(`http://localhost:8000/${options.url}`, {
|
||||
waitUntil: 'networkidle2',
|
||||
})
|
||||
const element = await page.waitForSelector(options.selector)
|
||||
|
||||
await element.screenshot({ path: `images/${file}.jpg` })
|
||||
|
||||
await element.dispose();
|
||||
await element.dispose()
|
||||
|
||||
await browser.close();
|
||||
})();
|
||||
await browser.close()
|
||||
})()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user