/** E2E-AUTH-002 / MCP-AUTH-001 — login page renders without submitting */
import { test, expect } from '@playwright/test'
import { APP } from '../helpers.mjs'

test.use({ storageState: { cookies: [], origins: [] } })

test('MCP-AUTH-001 login form visible', async ({ page }) => {
  await page.goto(`${APP}#/login`)
  await expect(page.getByLabel('用户名')).toBeVisible()
  await expect(page.getByLabel('密码', { exact: true })).toBeVisible()
  await expect(page.getByRole('button', { name: '登录' })).toBeVisible()
})
