Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

feat(desktop): 补 iframe 与预装引导跳过按钮的 data-testid

hairyf64d42fdaa759
diff --git a/src/layout/components/iframe.tsx b/src/layout/components/iframe.tsx
index 1b86a307..7b8e22b4 100644
--- a/src/layout/components/iframe.tsx
+++ b/src/layout/components/iframe.tsx
@@ -192,6 +192,7 @@ export function Iframe({ iframeRef }: IframeProps) {
<iframe
key={harness.iframeKey}
ref={iframeRef}
+ data-testid="dsh-shell-iframe"
className="h-full w-full"
src={harness.iframeSrc}
allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; clipboard-read; clipboard-write; display-capture; document-domain; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; idle-detection; keyboard-map; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; speaker-selection; usb; web-share; xr-spatial-tracking"
diff --git a/src/layout/components/setup-preinstall.tsx b/src/layout/components/setup-preinstall.tsx
index 4e4f23a8..f7c9704b 100644
--- a/src/layout/components/setup-preinstall.tsx
+++ b/src/layout/components/setup-preinstall.tsx
@@ -283,7 +283,7 @@ export function PreinstallSetup() {
{/* 操作区:有变更 → 弱「跳过」+ 主「确认」;无变更 → 主按钮独占「跳过」,避免重复入口 */}
<div className="flex items-center justify-end gap-2">
<If cond={hasChanges}>
- <Button className="h-8 rounded-md" size="sm" variant="tertiary" onPress={handleSkip} isDisabled={installing}>
+ <Button className="h-8 rounded-md" size="sm" variant="tertiary" data-testid="dsh-setup-preinstall-skip" onPress={handleSkip} isDisabled={installing}>
{t('preinstall.skip')}
</Button>
</If>
@@ -293,6 +293,7 @@ export function PreinstallSetup() {
className="h-8 rounded-md"
size="sm"
variant="primary"
+ data-testid="dsh-setup-preinstall-skip"
onPress={handleSkip}
isDisabled={installing}
>