Restore admin shell and harden smoke tests
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m37s
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m37s
This commit is contained in:
@@ -27,6 +27,11 @@ const required = [
|
||||
file: 'tests/e2e/route-isolation.spec.ts',
|
||||
pattern: 'admin login boots the admin app under the admin base path',
|
||||
message: '관리자 base path 하네스가 필요합니다.'
|
||||
},
|
||||
{
|
||||
file: 'tests/e2e/admin-smoke.spec.ts',
|
||||
pattern: '.admin-shell',
|
||||
message: '관리자 셸 렌더 검증이 필요합니다.'
|
||||
}
|
||||
];
|
||||
|
||||
@@ -60,6 +65,13 @@ for (const file of adminFiles) {
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (file === 'src/TaxBaik.Web.Client/Components/Admin/Layout/MainLayout.razor') {
|
||||
if (!text.includes('<AdminShell>')) {
|
||||
console.error('[route-lint] FAIL MainLayout: admin shell wrapper should be restored.');
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (failed) process.exit(1);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="admin-layout-shell">
|
||||
<AdminShell>
|
||||
@Body
|
||||
</div>
|
||||
</AdminShell>
|
||||
|
||||
@@ -59,6 +59,9 @@ test.describe('admin smoke', () => {
|
||||
await expect(page).toHaveURL(/\/taxbaik\/admin\/dashboard$/, { timeout: 20_000 });
|
||||
await expect(page.locator('body')).toContainText('세무 운영 콘솔', { timeout: 60_000 });
|
||||
await expect(page.getByRole('link', { name: /로그아웃/ })).toBeVisible({ timeout: 30_000 });
|
||||
await expect(page.locator('.admin-shell')).toBeVisible({ timeout: 30_000 });
|
||||
await expect(page.locator('.admin-drawer')).toBeVisible({ timeout: 30_000 });
|
||||
await expect(page.locator('.admin-content')).toContainText(/대시보드|세무 운영 콘솔/, { timeout: 30_000 });
|
||||
await captureEvidence(page, test.info(), 'admin-dashboard-smoke');
|
||||
|
||||
expect(consoleErrors, 'browser console/page errors').toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user