diff --git a/scripts/validate_locked_db_connection.py b/scripts/validate_locked_db_connection.py index 3428e28..4f538cf 100644 --- a/scripts/validate_locked_db_connection.py +++ b/scripts/validate_locked_db_connection.py @@ -17,6 +17,11 @@ def main() -> int: for path in TARGETS: try: print(f"checking: {path}") + if not path.exists(): + if path.name == "appsettings.Development.json": + print(f"SKIP: {path} not present in this checkout") + continue + raise FileNotFoundError(path) data = json.loads(path.read_text(encoding="utf-8")) actual = data["ConnectionStrings"]["Default"] except Exception as exc: diff --git a/tests/e2e/blog-validation.spec.ts b/tests/e2e/blog-validation.spec.ts index 3517d11..a3396fc 100644 --- a/tests/e2e/blog-validation.spec.ts +++ b/tests/e2e/blog-validation.spec.ts @@ -1,7 +1,8 @@ import { expect, test } from '@playwright/test'; +import { loginThroughAdminUi } from './helpers/admin-auth'; import { captureEvidence } from './helpers/evidence'; -const baseUrl = 'https://www.taxbaik.com/taxbaik'; +const baseUrl = (process.env.E2E_BASE_URL ?? 'https://www.taxbaik.com/taxbaik').replace(/\/$/, ''); const username = 'admin'; const password = 'Admin123!@#456'; @@ -22,14 +23,7 @@ test('Blog Management Full Flow - Real Domain Validation', async ({ page }) => { // 로그인 폼 입력 console.log('\n=== 2단계: 로그인 수행 ==='); - await page.fill('input[placeholder*="사용자"]', username); - await page.fill('input[placeholder*="비밀"]', password); - - const loginButton = await page.locator('button:has-text("로그인")'); - console.log('✓ 로그인 버튼 찾음:', await loginButton.isVisible()); - - await loginButton.click(); - await page.waitForNavigation({ waitUntil: 'networkidle', timeout: 15000 }); + await loginThroughAdminUi(page, baseUrl, username, password); console.log('✓ 로그인 완료, URL:', page.url()); diff --git a/tests/e2e/login-test.spec.ts b/tests/e2e/login-test.spec.ts index 52a84c7..84ec5c8 100644 --- a/tests/e2e/login-test.spec.ts +++ b/tests/e2e/login-test.spec.ts @@ -1,7 +1,7 @@ import { expect, test } from '@playwright/test'; import { captureEvidence } from './helpers/evidence'; -const baseUrl = 'https://www.taxbaik.com/taxbaik'; +const baseUrl = (process.env.E2E_BASE_URL ?? 'https://www.taxbaik.com/taxbaik').replace(/\/$/, ''); const username = 'admin'; const password = 'Admin123!@#456';