import { test, expect } from '@playwright/test'
import { requireKbxScenario, scenarioTitle } from './helpers/kbxScenario'

const masterRecovery=requireKbxScenario('scenario.erp.item-master.keyboard-recovery')

test.describe('ERP-MST-ITEM-001 T02 Lifecycle',()=>{
  test(scenarioTitle(masterRecovery.id),async({page})=>{
    await page.goto('/erp/items')
    await expect(page.locator('[data-screen-id="ERP-MST-ITEM-001"]')).toBeVisible()
    await expect(page.locator('[data-kbx-surface="master-list"]')).toBeVisible()
    await expect(page.locator('[data-kbx-surface="detail"]')).toBeVisible()
    await expect(page.getByRole('button',{name:/저장 F8/})).toBeDisabled()
  })
})
