test: blazor 내부 이동으로 관리자 e2e 안정화
This commit is contained in:
@@ -41,6 +41,18 @@ export async function loginThroughAdminUi(
|
||||
await expect(page.getByRole('heading', { name: '대시보드' })).toBeVisible({ timeout: 20_000 });
|
||||
}
|
||||
|
||||
export async function navigateInBlazor(page: Page, targetUrl: string) {
|
||||
await page.evaluate(url => {
|
||||
const blazor = (window as typeof window & { Blazor?: { navigateTo: (target: string) => void } }).Blazor;
|
||||
if (blazor) {
|
||||
blazor.navigateTo(url);
|
||||
return;
|
||||
}
|
||||
|
||||
window.location.href = url;
|
||||
}, targetUrl);
|
||||
}
|
||||
|
||||
export async function findInquiryByName(
|
||||
request: APIRequestContext,
|
||||
baseUrl: string,
|
||||
|
||||
Reference in New Issue
Block a user