This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user