Address comments

This commit is contained in:
Jorge Cabiedes committed 2025-05-05 10:20:06 -07:00
1 parent fa03b19203
commit ece6103657
2 files changed
+2 -5

No files matched your search

@@ -334,7 +334,6 @@ server.tool(
## Mean Render Time
${calculateMean(results.renderTime)}
TEST: ${results.webVitals.inp}
## Mean Web Vitals
- Cumulative Layout Shift (CLS): ${calculateMean(results.webVitals.cls)}
- Largest Contentful Paint (LCP): ${calculateMean(results.webVitals.lcp)}
@@ -135,10 +135,8 @@ export async function measurePerformance(
return window.__INTERACTABLE_SELECTORS__;
});
for (const selector of selectors) {
await page.click(selector);
await delay(500);
}
await Promise.all(selectors.map(selector => page.click(selector)));
await delay(500);
// Visit a new page for 1s to background the current page so that WebVitals can finish being calculated
const tempPage = await browser.newPage();