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

test('权限配置视觉基线', async ({ page }) => {
  await page.setViewportSize({ width: 1440, height: 900 });
  await page.goto('/system/permission');
  await page.getByText('菜单树', { exact: true }).waitFor();
  await page.evaluate(() => document.fonts.ready);

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