import { expect } from "e2e";
import { test, WEB } from "./t3.ts";

test("A positive competing token share prevents the largest share reading 100%", WEB, async ({ t3, app, screen }) => {
  await t3.project("Usage example");
  await t3.open("/usage");
  await screen.getByRole("button", "Tokens", { exact: true }).tap();
  await screen.getByRole("button", "Past 24h", { exact: true }).tap();
  await screen.getByText(/^<0\.1% of tokens/).waitFor({ timeout: 60000 });
  await app.screenshot("token-shares");
  await expect(screen.getByText(/^>99\.9% of tokens/)).toBeVisible();
});
