refactor: 리펙토링
This commit is contained in:
@@ -82,13 +82,7 @@ try {
|
||||
}).observe({ type: "layout-shift", buffered: true });
|
||||
});
|
||||
await page.goto(baseUrl, { waitUntil: "networkidle" });
|
||||
const performanceRoutes: ReadonlyArray<{
|
||||
access: string;
|
||||
navigationLabel: string | null;
|
||||
}> = Object.values(ROUTE_REGISTRY);
|
||||
const targetLabel = performanceRoutes.find(
|
||||
(definition) => definition.access === "integration-defined",
|
||||
)?.navigationLabel;
|
||||
const targetLabel = ROUTE_REGISTRY.REFERENCE_RESOURCE_LIST.navigationLabel;
|
||||
if (!targetLabel) {
|
||||
throw new Error("Performance route must be present in navigation.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user