docs: add project docs and test updates
This commit is contained in:
@@ -16,25 +16,20 @@ test.describe('P2-03/04: 봉투 단가 관리', () => {
|
||||
});
|
||||
|
||||
test('단가 목록 접근', async ({ page }) => {
|
||||
await page.goto('/admin/bag-prices');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-prices/);
|
||||
await page.goto('/bag/bag-prices');
|
||||
await expect(page).toHaveURL(/\/bag\/bag-prices/);
|
||||
});
|
||||
|
||||
test('단가 등록 폼 표시', async ({ page }) => {
|
||||
await page.goto('/admin/bag-prices/create');
|
||||
await page.goto('/bag/bag-prices/create');
|
||||
await expect(page.locator('select[name="bp_bag_code"]')).toBeVisible();
|
||||
await expect(page.locator('input[name="bp_order_price"]')).toBeVisible();
|
||||
});
|
||||
|
||||
test('기간 필터 조회', async ({ page }) => {
|
||||
await page.goto('/admin/bag-prices?start_date=2026-01-01&end_date=2026-12-31');
|
||||
await expect(page).toHaveURL(/start_date/);
|
||||
});
|
||||
|
||||
test('단가 변경 이력 페이지 (빈 상태)', async ({ page }) => {
|
||||
// 먼저 데이터가 있어야 하므로, 목록 페이지만 접근 확인
|
||||
await page.goto('/admin/bag-prices');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-prices/);
|
||||
await page.goto('/bag/bag-prices');
|
||||
await expect(page).toHaveURL(/\/bag\/bag-prices/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -42,7 +37,7 @@ test.describe('P2-03: 지자체관리자 접근', () => {
|
||||
|
||||
test('지자체관리자도 단가 목록 접근 가능', async ({ page }) => {
|
||||
await login(page, 'local');
|
||||
await page.goto('/admin/bag-prices');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-prices/);
|
||||
await page.goto('/bag/bag-prices');
|
||||
await expect(page).toHaveURL(/\/bag\/bag-prices/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user