V13-FE-006: consolidate approved UI and contract hardening
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test.describe('WMS-WORK-001 운영 Queue', () => {
|
||||
test('첫 진입부터 전체 내 작업과 예외 신호를 숨기지 않는다', async ({ page }) => {
|
||||
await page.goto('/wms/work')
|
||||
await expect(page.locator('[data-screen-id="WMS-WORK-001"]')).toBeVisible()
|
||||
await expect(page.getByText('PICK-260811-009', { exact: true })).toBeVisible()
|
||||
const exceptionSummary=page.getByLabel('업무 예외 요약')
|
||||
await expect(exceptionSummary).toContainText('확인 필요한 작업')
|
||||
await expect(exceptionSummary).toContainText('1')
|
||||
})
|
||||
|
||||
test('예외 필터는 BLOCKED만 좁혀 보고 작업 시작은 fail-closed 한다', async ({ page }) => {
|
||||
await page.goto('/wms/work')
|
||||
await page.getByLabel('업무 예외 요약').getByRole('button').click()
|
||||
await expect(page.getByText('PICK-260811-009', { exact: true })).toBeVisible()
|
||||
await page.getByText('PICK-260811-009', { exact: true }).click()
|
||||
await expect(page.getByRole('button', { name: '선택 작업 시작' })).toBeDisabled()
|
||||
await expect(page.getByText('예외 작업은 행을 열어 원인을 먼저 확인하세요.')).toBeVisible()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user