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

test.describe('Example E2E Tests', () => {
  test('should load the login page', async ({ page }) => {
    await page.goto('/login')
    await expect(page).toHaveTitle(/摄像头管理系统/)
  })

  test('should have login form elements', async ({ page }) => {
    await page.goto('/login')
    await expect(page.locator('input[type="text"], input[placeholder*="用户名"]')).toBeVisible()
    await expect(page.locator('input[type="password"]')).toBeVisible()
  })
})
