import { Page } from "@playwright/test";

/**
 * Navigate to the shopping list page
 */
export default async function goToShopping(page: Page): Promise<void> {
  await page.getByRole("button", { name: "Покупки" }).click();
  await page
    .getByRole("main", { name: "Список покупок" })
    .waitFor({ state: "visible" });
}
