🙂 Timeout set to 0

This commit is contained in:
ful1e5 2020-08-25 08:30:20 +05:30
parent bb803ba49a
commit ac19d8c73b

View file

@ -63,9 +63,11 @@ export const renderCursors = async ({
// Render // Render
const page = await browser.newPage(); const page = await browser.newPage();
page.setDefaultNavigationTimeout(0);
await page.setContent(template); await page.setContent(template, {
timeout: 0,
waitUntil: "networkidle0"
});
await page.waitForSelector("#container"); await page.waitForSelector("#container");
const svgElement = await page.$("#container svg"); const svgElement = await page.$("#container svg");