d3ro-voice/apps/desktop/tests/e2e/customer-support.spec.ts
Yun Chan 7fe49c437e 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.
2026-11-05 21:58:44 +09:00

21 lines
950 B
TypeScript

// apps/desktop/tests/e2e/customer-support.spec.ts
// 고객지원 계약: 사이드바에서 열리고, FAQ/문의 두 탭을 제공하며, Esc 로 닫힌다.
// (기존 launch_readiness 스펙은 특정 광고 문구와 개발 머신 스크린샷 경로에 의존해 실패가 잦았다.)
import { expect, expectNoRuntimeErrors, test } from './support/electron-app'
test.describe('고객지원', () => {
test('사이드바에서 열리고 두 탭을 제공하며 Esc 로 닫힌다', async ({ mainWindow }) => {
const dialog = mainWindow.window.getByRole('dialog')
await mainWindow.window.getByTestId('nav-support').click()
await expect(dialog).toBeVisible()
await expect(dialog.getByRole('tab')).toHaveCount(2)
await expect(dialog.getByRole('tab', { selected: true })).toHaveCount(1)
await mainWindow.window.keyboard.press('Escape')
await expect(dialog).toBeHidden()
expectNoRuntimeErrors(mainWindow)
})
})