diff --git a/src/ReservationApp.tsx b/src/ReservationApp.tsx index 0322727..a680e11 100644 --- a/src/ReservationApp.tsx +++ b/src/ReservationApp.tsx @@ -1,6 +1,7 @@ import { useEffect, useMemo, useState } from 'react' import AutomationPanel from './components/AutomationPanel' import type { + AutoReservationState, Branch, PriceOption, ReservationRequest, @@ -54,6 +55,7 @@ function Icon({ name, className = 'h-5 w-5' }: { name: string; className?: strin check: , arrow: <>, key: <>, + rabbit: <>, } return (
- +
-

ESCAPE

-

RESERVE DESK

+

Dahyeon's

+

Test Project 161

@@ -328,11 +338,7 @@ function ReservationApp() { -
- -
-
민감 정보 보호
-

이름, 연락처, 캡차 토큰은 파일에 저장하지 않고 예약 요청 시에만 사용합니다.

+ {autoMode && }
@@ -445,7 +451,7 @@ function ReservationApp() {

Final check

예약 요약

{formatPrice(selectedPrice?.totalPrice)}

테마
{selectedBranch?.name ?? '—'} · {selectedTheme?.name ?? '—'}
일정
{date ? formatDate(date) : '—'} {selectedTime?.time ?? ''}
인원
{person ? `${person}명` : '—'}
결제
무통장입금
- {!autoMode ? <>

버튼을 누르면 실제 예약이 1회 접수됩니다.

:

자동 예약 카드에서 서버시간과 토큰 상태를 확인한 뒤 무장하세요.

} + {!autoMode ? <>

버튼을 누르면 실제 예약이 1회 접수됩니다.

:

자동 예약 카드에서 서버시간과 토큰 상태를 확인한 뒤 시작하세요.

} diff --git a/src/components/AutomationPanel.tsx b/src/components/AutomationPanel.tsx index 7c6cca2..f815e43 100644 --- a/src/components/AutomationPanel.tsx +++ b/src/components/AutomationPanel.tsx @@ -235,7 +235,7 @@ export default function AutomationPanel({ captchaPastedAtMs, })) } catch (reason) { - setError(reason instanceof Error ? reason.message : '자동 예약을 무장하지 못했습니다.') + setError(reason instanceof Error ? reason.message : '자동 예약을 시작하지 못했습니다.') } finally { setBusy(null) } @@ -330,7 +330,7 @@ export default function AutomationPanel({
토큰{captchaToken ? `${captchaToken.slice(0, 6)}••••${captchaToken.slice(-4)} · ${formatDuration(tokenAgeMs)}` : '입력되지 않음'}
{autoState.snapshot && <>
고정 스냅샷{autoState.snapshot.themeName} · {autoState.snapshot.date} {autoState.snapshot.timeLabel} · {autoState.snapshot.person}명
예정 발송{autoState.timeline?.plannedSendAtMs ? formatClock(autoState.timeline.plannedSendAtMs) : '계산 중'}
}
{autoState.timeline?.actualSendAtMs &&
= 0 ? '+' : ''}${autoState.timeline.arrivalErrorMs.toFixed(1)}ms`} />
} {(error || autoState.message) &&

{error || autoState.message}

} -
{armed ? : }
+
{armed ? : }
) diff --git a/test/e2e/e2e.spec.ts b/test/e2e/e2e.spec.ts index cb4d237..5989961 100644 --- a/test/e2e/e2e.spec.ts +++ b/test/e2e/e2e.spec.ts @@ -130,7 +130,7 @@ test.describe('[escape-reserve] e2e tests', () => { return value.toISOString().slice(0, -1) }) await page.getByLabel('실행 시각 (KST, ms)').fill(target) - await page.getByRole('button', { name: '자동 예약 무장' }).click() + await page.getByRole('button', { name: '자동 예약 시작' }).click() await expect(page.getByText('armed', { exact: true })).toBeVisible({ timeout: 10_000 }) await page.getByRole('button', { name: '자동 예약 해제' }).click() diff --git a/test/screenshots/e2e.png b/test/screenshots/e2e.png index 6d3c3e1..918488e 100644 Binary files a/test/screenshots/e2e.png and b/test/screenshots/e2e.png differ