mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update script.js
This commit is contained in:
@@ -12,7 +12,7 @@ for (const [file, options] of Object.entries(schema)) {
|
||||
(async () => {
|
||||
const browser = await puppeteer.launch();
|
||||
const page = await browser.newPage();
|
||||
await page.goto(`http://localhost/${options.url}`, { waitUntil: 'networkidle2' });
|
||||
await page.goto(`http://localhost:8000/${options.url}`, { waitUntil: 'networkidle2' });
|
||||
const element = await page.waitForSelector(options.selector);
|
||||
|
||||
await element.screenshot({ path: `images/${file}.jpg` })
|
||||
|
||||
Reference in New Issue
Block a user