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

test('KBX shell exposes real keyboard and landmark accessibility contracts', async ({ page }) => {
  await page.goto('/model-ops/models', { waitUntil: 'networkidle' })
  await expect(page.locator('a.ks-skip')).toHaveAttribute('href', '#ks-main')
  await expect(page.locator('main#ks-main')).toHaveAttribute('tabindex', '-1')
  await expect(page.locator('aside[aria-label="주요 메뉴"]')).toBeVisible()
  await expect(page.locator('nav[aria-label="열린 업무"]')).toBeVisible()
  await expect(page.locator('nav[aria-label="현재 위치"]')).toBeVisible()
  await expect(page.locator('h1')).toContainText('Model Management')

  await page.locator('a.ks-skip').focus()
  await page.keyboard.press('Enter')
  await expect(page.locator('main#ks-main')).toBeFocused()
})
