Right rail template
This commit is contained in:
@@ -74,7 +74,11 @@ test.describe("Performance Monitoring", () => {
|
||||
const metrics: { lcp?: number; fid?: number; cls?: number } = {};
|
||||
|
||||
for (const entry of entries) {
|
||||
const e = entry as any;
|
||||
const e = entry as PerformanceEntry & {
|
||||
startTime?: number;
|
||||
processingStart?: number;
|
||||
value?: number;
|
||||
};
|
||||
if (
|
||||
e.name === "LCP" ||
|
||||
e.entryType === "largest-contentful-paint"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
import { test, expect, type Page } from "@playwright/test";
|
||||
|
||||
test.describe("Visual Regression Tests", () => {
|
||||
async function settle(page: any) {
|
||||
async function settle(page: Page) {
|
||||
await page.evaluate(() => {
|
||||
window.scrollTo(0, window.scrollY); // ensure a frame boundary
|
||||
void document.body.getBoundingClientRect();
|
||||
|
||||
Reference in New Issue
Block a user