docs: add project docs and test updates
This commit is contained in:
@@ -12,19 +12,19 @@ async function loginAsAdmin(page) {
|
||||
test.describe('P3: 발주 관리', () => {
|
||||
test('발주 현황 접근', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-orders');
|
||||
await page.goto('/bag/bag-orders');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-orders/);
|
||||
});
|
||||
|
||||
test('발주 등록 폼', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-orders/create');
|
||||
await page.goto('/bag/bag-orders/create');
|
||||
await expect(page.locator('input[name="bo_order_date"]')).toBeVisible();
|
||||
});
|
||||
|
||||
test('기간 필터 조회', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-orders?start_date=2026-01-01&end_date=2026-12-31');
|
||||
await page.goto('/bag/bag-orders?start_date=2026-01-01&end_date=2026-12-31');
|
||||
await expect(page).toHaveURL(/start_date/);
|
||||
});
|
||||
});
|
||||
@@ -32,13 +32,13 @@ test.describe('P3: 발주 관리', () => {
|
||||
test.describe('P3: 입고 관리', () => {
|
||||
test('입고 현황 접근', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-receivings');
|
||||
await page.goto('/bag/bag-receivings');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-receivings/);
|
||||
});
|
||||
|
||||
test('입고 처리 폼', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-receivings/create');
|
||||
await page.goto('/bag/bag-receivings/create');
|
||||
await expect(page.locator('select[name="br_bo_idx"]')).toBeVisible();
|
||||
});
|
||||
});
|
||||
@@ -46,7 +46,7 @@ test.describe('P3: 입고 관리', () => {
|
||||
test.describe('P3: 재고 현황', () => {
|
||||
test('재고 현황 접근', async ({ page }) => {
|
||||
await loginAsAdmin(page);
|
||||
await page.goto('/admin/bag-inventory');
|
||||
await page.goto('/bag/bag-inventory');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-inventory/);
|
||||
});
|
||||
});
|
||||
@@ -54,11 +54,11 @@ test.describe('P3: 재고 현황', () => {
|
||||
test.describe('P3: 지자체관리자 접근', () => {
|
||||
test('발주/입고/재고 접근 가능', async ({ page }) => {
|
||||
await login(page, 'local');
|
||||
await page.goto('/admin/bag-orders');
|
||||
await page.goto('/bag/bag-orders');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-orders/);
|
||||
await page.goto('/admin/bag-receivings');
|
||||
await page.goto('/bag/bag-receivings');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-receivings/);
|
||||
await page.goto('/admin/bag-inventory');
|
||||
await page.goto('/bag/bag-inventory');
|
||||
await expect(page).toHaveURL(/\/admin\/bag-inventory/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user