test: blazor 내부 이동으로 관리자 e2e 안정화
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
import { loginThroughAdminUi } from './helpers/admin-auth';
|
||||
import { loginThroughAdminUi, navigateInBlazor } from './helpers/admin-auth';
|
||||
|
||||
const username = process.env.E2E_ADMIN_USERNAME ?? 'admin';
|
||||
const password = process.env.E2E_ADMIN_PASSWORD;
|
||||
@@ -29,7 +29,7 @@ test.describe('admin smoke', () => {
|
||||
];
|
||||
|
||||
for (const check of menuChecks) {
|
||||
await page.goto(`${baseUrl}${check.path}`);
|
||||
await navigateInBlazor(page, `${baseUrl}${check.path}`);
|
||||
await expect(page).toHaveURL(new RegExp(`${check.path}$`));
|
||||
await expect(page.locator('.mud-main-content').getByText(check.content).first()).toBeVisible({ timeout: 20_000 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user