@@ -360,7 +360,8 @@ async function testAppServe(pluginName: string, appDir: string) {
|
||||
try {
|
||||
browser = await puppeteer.launch();
|
||||
const page = await browser.newPage();
|
||||
await page.goto('http://localhost:3000');
|
||||
|
||||
await page.goto('http://localhost:3000', { waitUntil: 'networkidle0' });
|
||||
|
||||
await waitForPageWithText(page, '/', 'My Company Catalog');
|
||||
await waitForPageWithText(
|
||||
|
||||
@@ -138,7 +138,9 @@ export async function waitForPageWithText(
|
||||
console.log(`Attempting to load page at ${path}, waiting ${waitTimeMs}`);
|
||||
await new Promise(resolve => setTimeout(resolve, waitTimeMs));
|
||||
|
||||
await page.goto(`http://localhost:3000${path}`);
|
||||
await page.goto(`http://localhost:3000${path}`, {
|
||||
waitUntil: 'networkidle0',
|
||||
});
|
||||
|
||||
const escapedText = text.replace(/"|\\/g, '\\$&');
|
||||
const match = await page.evaluate(() =>
|
||||
|
||||
Reference in New Issue
Block a user