docs: add project docs and test updates
This commit is contained in:
@@ -7,11 +7,38 @@ test.describe('사이트 메뉴 (/bag/*) 페이지 접근', () => {
|
||||
await login(page, 'local');
|
||||
});
|
||||
|
||||
test('기본정보관리', async ({ page }) => {
|
||||
test('기본정보관리 (허브)', async ({ page }) => {
|
||||
await page.goto('/bag/basic-info');
|
||||
await expect(page).toHaveURL(/\/bag\/basic-info/);
|
||||
await expect(page.locator('text=봉투 단가')).toBeVisible();
|
||||
await expect(page.locator('a[href*="bag/code-kinds"]')).toBeVisible();
|
||||
await expect(page.locator('a[href*="bag/prices"]')).toBeVisible();
|
||||
await expect(page.locator('a[href*="bag/packaging-units"]')).toBeVisible();
|
||||
});
|
||||
|
||||
test('봉투 단가 (/bag/prices)', async ({ page }) => {
|
||||
await page.goto('/bag/prices');
|
||||
await expect(page).toHaveURL(/\/bag\/prices/);
|
||||
await expect(page.locator('th:has-text("발주단가")')).toBeVisible();
|
||||
await expect(page.locator('select[name="bag_kind_e"]')).toBeVisible();
|
||||
await expect(page.locator('select[name="bag_code"]')).toBeVisible();
|
||||
});
|
||||
|
||||
test('봉투 단가 기간·구분 필터 GET', async ({ page }) => {
|
||||
await page.goto('/bag/prices?start_date=2026-01-01&end_date=2026-12-31&bag_kind_e=10');
|
||||
await expect(page).toHaveURL(/start_date=/);
|
||||
await expect(page).toHaveURL(/bag_kind_e=10/);
|
||||
});
|
||||
|
||||
test('봉투 단가 기간 연·월·일 GET', async ({ page }) => {
|
||||
await page.goto('/bag/prices?start_y=2026&start_m=1&start_d=1&end_y=2026&end_m=12&end_d=31');
|
||||
await expect(page).toHaveURL(/start_y=/);
|
||||
await expect(page.locator('select[name="start_m"]')).toHaveValue('1');
|
||||
await expect(page.locator('select[name="end_m"]')).toHaveValue('12');
|
||||
});
|
||||
|
||||
test('포장 단위 (/bag/packaging-units)', async ({ page }) => {
|
||||
await page.goto('/bag/packaging-units');
|
||||
await expect(page).toHaveURL(/\/bag\/packaging-units/);
|
||||
await expect(page.locator('th:has-text("박스당 팩 수")')).toBeVisible();
|
||||
});
|
||||
|
||||
test('기본코드관리 (/bag/code-kinds)', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user