import { test, expect } from "@playwright/test";

test("/news renders without error", async ({ page }) => {
  const response = await page.goto("/news");
  expect(response?.status()).toBe(200);

  await expect(
    page.getByRole("heading", { level: 1, name: /News/i }),
  ).toBeVisible();
});

test("/studies renders without error", async ({ page }) => {
  const response = await page.goto("/studies");
  expect(response?.status()).toBe(200);

  await expect(
    page.getByRole("heading", { level: 1, name: /Studies/i }),
  ).toBeVisible();
});

test("/studio mounts sanity studio shell", async ({ page }) => {
  const response = await page.goto("/studio");
  expect(response?.status()).toBe(200);
});
