사용자 매뉴얼·번호알기·gov-portal 대시보드와 메뉴 동선·수불 리포트를 보강한다.
- 사용자 매뉴얼: league/commonmark 기반 bag/manual(로그인 전용), ManualRenderer + Config\Manual manifest, 콘텐츠 8종, E2E - 번호알기(봉투번호확인): bag/number-lookup, BagNumberLookup, E2E - gov-portal 대시보드 시안(기본/strip)·기본코드관리 화면 - 메뉴 관리: 등록·수정 후 메뉴 화면 유지, 수정 버튼 클릭 시 상단 스크롤 - 수불/분석 리포트(LOT 수불·반품/파기·수급계획·추이) 표시 보강 - .gitignore: docs/ → /docs/ 앵커링(최상위 개발문서만 제외, app/Docs는 추적) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
37
e2e/number-lookup.spec.js
Normal file
37
e2e/number-lookup.spec.js
Normal file
@@ -0,0 +1,37 @@
|
||||
// @ts-check
|
||||
const { test, expect } = require('@playwright/test');
|
||||
const { login } = require('./helpers/auth');
|
||||
|
||||
test.describe('번호알기 (봉투번호확인)', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await login(page, 'local');
|
||||
});
|
||||
|
||||
test('페이지 로드 및 기본 UI', async ({ page }) => {
|
||||
await page.goto('/bag/number-lookup');
|
||||
await expect(page).toHaveURL(/\/bag\/number-lookup/);
|
||||
await expect(page.locator('#numLookupTitle')).toHaveText(/봉투번호확인/);
|
||||
await expect(page.locator('#codeInput')).toBeVisible();
|
||||
await expect(page.locator('#barcodeOut')).toHaveText(/- - - -/);
|
||||
await expect(page.locator('#printOut')).toHaveText(/- - -/);
|
||||
await expect(page.locator('#recognitionOut')).toHaveText(/- -/);
|
||||
});
|
||||
|
||||
test('LOT-팩-낱장 코드 조회', async ({ page }) => {
|
||||
await page.goto('/bag/number-lookup');
|
||||
await page.fill('#codeInput', 'OQXCKH-000008-P299-S00125');
|
||||
await page.click('button.num-lookup-btn-primary');
|
||||
|
||||
await expect(page).toHaveURL(/code=OQXCKH-000008-P299-S00125/);
|
||||
await expect(page.locator('#barcodeOut')).toContainText('OQXCKH');
|
||||
await expect(page.locator('#barcodeOut')).toContainText('P299');
|
||||
await expect(page.locator('#printOut')).toContainText('8');
|
||||
await expect(page.locator('#recognitionOut')).toContainText('P299');
|
||||
});
|
||||
|
||||
test('도움말에서 번호알기 링크', async ({ page }) => {
|
||||
await page.goto('/bag/help');
|
||||
await page.click('a[href*="bag/number-lookup"]');
|
||||
await expect(page).toHaveURL(/\/bag\/number-lookup/);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user