import { expect, test } from "../fixtures/test";
import { selectors } from "../fixtures/selectors";

test.use({ scenarioId: "loading" });

test("delayed session list resolves to captured tabs without fake entries", async ({ page }) => {
  await page.goto("/workbench");
  await expect(page.locator(selectors.workspace)).toBeVisible();
  await expect(page.locator(selectors.sessionTabs)).toHaveAttribute("data-loading", "false");
  await expect(page.locator(".session-tab")).toHaveCount(4);
  await expect(page.locator(selectors.commandInput)).toBeVisible();
});
