test: 관리자 화면 e2e를 실제 로그인 흐름으로 전환
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m8s
TaxBaik Browser E2E / browser-e2e (push) Failing after 3m27s

This commit is contained in:
2026-06-27 21:29:31 +09:00
parent 9f7e01652d
commit a58aa7efe0
4 changed files with 21 additions and 8 deletions
+3 -4
View File
@@ -1,12 +1,12 @@
import { expect, test } from '@playwright/test';
import { getAdminToken, installAdminToken } from './helpers/admin-auth';
import { loginThroughAdminUi } from './helpers/admin-auth';
const username = process.env.E2E_ADMIN_USERNAME ?? 'admin';
const password = process.env.E2E_ADMIN_PASSWORD;
const baseUrl = (process.env.E2E_BASE_URL ?? 'http://178.104.200.7/taxbaik').replace(/\/$/, '');
test.describe('admin smoke', () => {
test('navigates the main admin menus without circuit errors', async ({ page, request }) => {
test('navigates the main admin menus without circuit errors', async ({ page }) => {
test.skip(!password, 'E2E_ADMIN_PASSWORD is required.');
const consoleErrors: string[] = [];
@@ -19,8 +19,7 @@ test.describe('admin smoke', () => {
consoleErrors.push(error.message);
});
const token = await getAdminToken(request, baseUrl, username, password);
await installAdminToken(page, token);
await loginThroughAdminUi(page, baseUrl, username, password);
const menuChecks = [
{ path: '/admin/dashboard', content: /이번달 문의/ },