fix(admin): restore prerendered CRM pages
TaxBaik CI/CD / build-and-deploy (push) Successful in 3m4s

This commit is contained in:
2026-07-05 17:19:43 +09:00
parent 9e08c6e12c
commit 0179c1d640
6 changed files with 171 additions and 93 deletions
+21
View File
@@ -0,0 +1,21 @@
import { expect, type Page } from '@playwright/test';
export const Wait = {
short: 2_000,
medium: 5_000,
long: 12_000,
page: 12_000,
api: 8_000,
render: 12_000,
} as const;
export async function waitForAppReady(page: Page) {
await expect(page.locator('#blazor-loading')).toBeHidden({ timeout: Wait.long });
}
export async function waitForDashboardReady(page: Page) {
await waitForAppReady(page);
await expect(page).toHaveURL(/\/taxbaik\/admin\/dashboard$/, { timeout: Wait.page });
await expect(page.getByRole('link', { name: '로그아웃' })).toBeVisible({ timeout: Wait.page });
await expect(page.getByText('세무 운영 콘솔')).toBeVisible({ timeout: Wait.page });
}