import { expect, test } from '../fixtures/auth';

test('总览页面视觉基线', async ({ page }) => {
  await page.goto('/dashboard');
  await page.getByText('近7日对话趋势').waitFor();
  await page.locator('canvas').first().waitFor();
  await page.evaluate(() => document.fonts.ready);

  await expect(page).toHaveScreenshot('dashboard.png', {
    fullPage: true,
  });
});
