Refine admin login flow and verification harness
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m21s

This commit is contained in:
2026-07-07 14:38:30 +09:00
parent b7cb442937
commit 35842b6765
60 changed files with 1043 additions and 495 deletions
+6 -7
View File
@@ -1,15 +1,13 @@
import { test, expect } from '@playwright/test';
import { loginThroughAdminUi, navigateInBlazor } from './helpers/admin-auth';
import { captureEvidence } from './helpers/evidence';
test('production: verify all admin pages load correctly', async ({ page }) => {
const baseUrl = 'http://178.104.200.7/taxbaik';
const baseUrl = (process.env.E2E_BASE_URL || 'https://www.taxbaik.com/taxbaik').replace(/\/$/, '');
// Login
console.log('🔐 Logging in...');
await page.goto(`${baseUrl}/admin/login`);
await page.fill('input[placeholder="사용자명"]', 'test_admin');
await page.fill('input[placeholder="비밀번호"]', 'TestAdmin@123456');
await page.click('button[type="submit"]');
await page.waitForURL(/admin\/dashboard/);
await loginThroughAdminUi(page, baseUrl, 'test_admin', 'admin123');
console.log('✓ Login successful\n');
const pageHero = page.locator('.admin-page-hero').first();
@@ -38,7 +36,7 @@ test('production: verify all admin pages load correctly', async ({ page }) => {
try {
// Navigate to page
await page.goto(pageInfo.url);
await navigateInBlazor(page, pageInfo.url);
// Wait for page hero or basic element
try {
@@ -82,6 +80,7 @@ test('production: verify all admin pages load correctly', async ({ page }) => {
const totalTime = Date.now() - startTime;
console.log(` ⏱️ Load time: ${totalTime}ms`);
console.log(` ✅ PAGE LOADED SUCCESSFULLY\n`);
await captureEvidence(page, test.info(), pageInfo.name.replace(/[^a-zA-Z0-9]+/g, '_').toLowerCase());
} catch (error) {
const totalTime = Date.now() - startTime;
console.log(` ❌ FAILED: ${error}`);