import { expect, type Locator, type Page } from "@playwright/test"; // Opens the command center / global search palette from the sidebar and returns its panel. export async function openCommandCenter(page: Page): Promise { await page.getByTestId("sidebar-command-center-search").click(); const panel = page.getByTestId("command-center-panel"); await expect(panel).toBeVisible({ timeout: 30_000 }); return panel; }