Add route isolation smoke harness
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m34s

This commit is contained in:
2026-07-08 01:23:36 +09:00
parent 5813130443
commit 1f8ca7c8bb
2 changed files with 25 additions and 0 deletions
+5
View File
@@ -46,6 +46,11 @@ export default defineConfig({
name: 'Admin Smoke',
testMatch: /admin-smoke\.spec\.ts$/,
use: { ...devices['Desktop Chrome'] }
},
{
name: 'Route Isolation',
testMatch: /route-isolation\.spec\.ts$/,
use: { ...devices['Desktop Chrome'] }
}
]
});
+20
View File
@@ -0,0 +1,20 @@
import { expect, test } from '@playwright/test';
const baseUrl = (process.env.E2E_BASE_URL ?? 'https://www.taxbaik.com/taxbaik').replace(/\/$/, '');
test.describe('route isolation', () => {
test('public home does not boot the admin app', async ({ page }) => {
await page.goto(baseUrl);
await expect(page).not.toHaveTitle(/관리자/);
await expect(page).toHaveTitle(/백원숙 세무회계/);
await expect(page.getByRole('heading', { name: /상담 과정/ })).toBeVisible();
await expect(page.getByRole('link', { name: /카카오 상담하기|카카오채널 문의/ })).toBeVisible();
});
test('admin login boots the admin app under the admin base path', async ({ page }) => {
await page.goto(`${baseUrl}/admin/login`);
await expect(page).toHaveTitle(/관리자 로그인/);
await expect(page).toHaveURL(/\/taxbaik\/admin\/login$/);
await expect(page.getByRole('heading', { name: /관리자 로그인/ })).toBeVisible();
});
});