fix: update test snapshots and add placeholder to InputPrompt tests

This commit is contained in:
pomelo-nwu
2025-11-18 12:59:04 +08:00
parent 805a919f69
commit 78ea9d3fde
2 changed files with 21 additions and 20 deletions

View File

@@ -215,6 +215,7 @@ describe('InputPrompt', () => {
inputWidth: 80, inputWidth: 80,
suggestionsWidth: 80, suggestionsWidth: 80,
focus: true, focus: true,
placeholder: ' Type your message or @path/to/file',
}; };
}); });

View File

@@ -14,14 +14,14 @@ exports[`SettingsDialog > Snapshot Tests > should render default state correctly
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -48,14 +48,14 @@ exports[`SettingsDialog > Snapshot Tests > should render focused on scope select
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -82,14 +82,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with accessibility sett
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -116,14 +116,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with all boolean settin
│ │ │ │
│ Debug Keystroke Logging false* │ │ Debug Keystroke Logging false* │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false* │ │ Hide Window Title false* │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false* │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -150,14 +150,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with different scope se
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -184,14 +184,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with different scope se
│ │ │ │
│ Debug Keystroke Logging (Modified in Workspace) false │ │ Debug Keystroke Logging (Modified in Workspace) false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -218,14 +218,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with file filtering set
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -252,14 +252,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with mixed boolean and
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false* │ │ Hide Window Title false* │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -286,14 +286,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with tools and security
│ │ │ │
│ Debug Keystroke Logging false │ │ Debug Keystroke Logging false │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title false │ │ Hide Window Title false │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips false │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │
@@ -320,14 +320,14 @@ exports[`SettingsDialog > Snapshot Tests > should render with various boolean se
│ │ │ │
│ Debug Keystroke Logging true* │ │ Debug Keystroke Logging true* │
│ │ │ │
│ Language Auto (detect from system) │
│ │
│ Output Format Text │ │ Output Format Text │
│ │ │ │
│ Hide Window Title true* │ │ Hide Window Title true* │
│ │ │ │
│ Show Status in Title false │ │ Show Status in Title false │
│ │ │ │
│ Hide Tips true* │
│ │
│ ▼ │ │ ▼ │
│ │ │ │
│ │ │ │