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

test.describe('认证状态测试', () => {
  test('验证认证状态是否正常', async ({ page }) => {
    await page.goto('/dashboard');
    await page.waitForLoadState('networkidle');
    
    const token = await page.evaluate(() => localStorage.getItem('token'));
    console.log('Token:', token);
    
    await expect(page).not.toHaveURL(/.*login/);
  });
});
