chore: land in-progress workspace changes before 1.16.2

The tree carried uncommitted work from several areas (web push, mobile
screens, admin charts, test-hygiene cleanup, CI and map docs). It is landed
as one commit so the release pipeline can start from a clean tree; the
desktop transcript-correction behaviour shipped in the previous commit and
is unchanged here.
This commit is contained in:
Yun Chan 2026-11-05 21:58:44 +09:00
parent 9c2b6a9782
commit 7fe49c437e
144 changed files with 3760 additions and 4523 deletions

View file

@ -1,92 +1,43 @@
import { test, expect, _electron as electron } from '@playwright/test';
// apps/desktop/tests/e2e/navigation.spec.ts
// 셸 내비게이션 계약: 사이드바가 노출하는 화면과, 누르면 현재 화면이 옮겨간다는 행위.
// 화면별 렌더 내용은 각 화면의 단위 테스트가 맡는다. E2E 는 "주요 화면으로 갈 수 있는가"만 본다.
test.describe('Navigation', () => {
test.describe.configure({ mode: 'serial' });
let electronApp: any;
let window: any;
import { expect, expectNoRuntimeErrors, goToRoute, test } from './support/electron-app'
test.beforeAll(async () => {
electronApp = await electron.launch({
args: ['out/main/index.js', '--user-data-dir=C:/Users/encep/AppData/Local/Temp/playwright-d3ro-test-navigation'],
env: {
...process.env,
NODE_ENV: 'test',
},
});
let found = false;
for (const w of electronApp.windows()) {
await w.waitForLoadState('domcontentloaded');
const t = await w.title();
if (t === 'D3RO Voice' || t === 'd3ro-voice') {
window = w;
found = true;
break;
}
const NAV_ROUTES = [
'home',
'search',
'records',
'meetings',
'conversation',
'commands',
'dictionary',
'knowledge',
'settings',
] as const
test.describe('셸 내비게이션', () => {
test('사이드바는 주 화면·도구 화면·지원·설정을 모두 노출한다', async ({ mainWindow }) => {
const nav = mainWindow.window.getByRole('navigation')
for (const route of NAV_ROUTES) {
await expect(nav.getByTestId(`nav-${route}`)).toBeVisible()
}
if (!found) {
window = await electronApp.waitForEvent('window', {
predicate: async (page) => {
await page.waitForLoadState('domcontentloaded');
const t = await page.title();
return t === 'D3RO Voice' || t === 'd3ro-voice';
}
});
await expect(nav.getByTestId('nav-support')).toBeVisible()
expectNoRuntimeErrors(mainWindow)
})
test('각 항목을 누르면 현재 화면 표시(aria-current)가 정확히 하나로 옮겨간다', async ({ mainWindow }) => {
const nav = mainWindow.window.getByRole('navigation')
for (const route of NAV_ROUTES) {
await test.step(route, async () => {
await goToRoute(mainWindow, route)
await expect(nav.locator('[aria-current="page"]')).toHaveCount(1)
})
}
// Bypass onboarding via IPC config set
await window.evaluate(async () => {
if (window.electronAPI && window.electronAPI.config) {
await window.electronAPI.config.set({ key: 'onboardingCompleted', value: true });
await window.electronAPI.config.set({ key: 'appUsageMode', value: 'online' });
await window.electronAPI.config.set({ key: 'llmBackend', value: 'online' });
}
});
// Wait for the config to propagate then reload the page
await window.waitForTimeout(500);
await window.reload();
await window.waitForLoadState('domcontentloaded');
// Wait for React to mount AppLayout
await window.waitForTimeout(1000);
});
test.afterAll(async () => {
if (electronApp) {
await electronApp.close();
}
});
test('should navigate to all sidebar tabs correctly', async () => {
// Dashboard
await window.locator('text=/^(Dashboard|대시보드)$/').first().click();
await expect(window.locator('text=/^(Current Backend|현재 백엔드)$/').first()).toBeVisible();
// History
await window.locator('text=/^(History|히스토리|기록)$/').first().click();
await expect(window.locator('text=/^(History|히스토리|변환 기록)$/').first()).toBeVisible();
// Dictionary
await window.locator('text=/^(Dictionary|사전|단어장)$/').first().click();
await expect(window.locator('text=/^(Custom Dictionary|커스텀 사전|단어장)$/').first()).toBeVisible();
// Commands
await window.locator('text=/^(Commands|명령어)$/').first().click();
await expect(window.locator('text=/^(LLM Commands|LLM 명령어)$/').first()).toBeVisible();
// Voice Conversation
await window.locator('text=/^(Conversation|대화|음성 대화)$/').first().click();
await expect(window.locator('text=/^(Voice Conversation|음성 대화)$/').first()).toBeVisible();
// Knowledge Base
await window.locator('text=/^(Knowledge|지식 베이스)$/').first().click();
await expect(window.locator('text=/^(Knowledge Base|지식 베이스)$/').first()).toBeVisible();
// Meeting Mode
await window.locator('text=/^(Meeting|회의|회의 모드)$/').first().click();
await expect(window.locator('text=/^(Meeting Mode|회의 모드)$/').first()).toBeVisible();
});
});
expectNoRuntimeErrors(mainWindow)
})
})