Files
taxbaik/tests/e2e/helpers/wait.ts
T
kjh2064 0179c1d640
TaxBaik CI/CD / build-and-deploy (push) Successful in 3m4s
fix(admin): restore prerendered CRM pages
2026-07-05 17:19:43 +09:00

22 lines
699 B
TypeScript

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 });
}