Download packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 6.87 kB
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap
-
curl -L -o AskUserDialog.test.tsx.snap https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap
6.87 kB
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | |
| exports[`AskUserDialog > Choice question placeholder > uses default placeholder when not provided 1`] = ` | |
| "Select your preferred language: | |
| 1. TypeScript | |
| 2. JavaScript | |
| β 3. Enter a custom value | |
| Enter to submit Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Choice question placeholder > uses placeholder for "Other" option when provided 1`] = ` | |
| "Select your preferred language: | |
| 1. TypeScript | |
| 2. JavaScript | |
| β 3. Type another language... | |
| Enter to submit Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: false) > shows scroll arrows correctly when useAlternateBuffer is false 1`] = ` | |
| "Choose an option | |
| β² | |
| β 1. Option 1 | |
| Description 1 | |
| 2. Option 2 | |
| Description 2 | |
| 3. Option 3 | |
| Description 3 | |
| βΌ | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: true) > shows scroll arrows correctly when useAlternateBuffer is true 1`] = ` | |
| "Choose an option | |
| β² | |
| β 1. Option 1 | |
| Description 1 | |
| 2. Option 2 | |
| Description 2 | |
| 3. Option 3 | |
| Description 3 | |
| βΌ | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Text type questions > renders text input for type: "text" 1`] = ` | |
| "What should we name this component? | |
| > e.g., UserProfileCard | |
| Enter to submit Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Text type questions > shows correct keyboard hints for text type 1`] = ` | |
| "Enter the variable name: | |
| > Enter your response | |
| Enter to submit Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > Text type questions > shows default placeholder when none provided 1`] = ` | |
| "Enter the database connection string: | |
| > Enter your response | |
| Enter to submit Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > allows navigating to Review tab and back 1`] = ` | |
| "β β‘ Tests β β‘ Docs β β‘ Review β | |
| Review your answers: | |
| β You have 2 unanswered questions | |
| Tests β (not answered) | |
| Docs β (not answered) | |
| Enter to submit Β· Tab/Shift+Tab to edit answers Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > hides progress header for single question 1`] = ` | |
| "Which authentication method should we use? | |
| β 1. OAuth 2.0 | |
| Industry standard, supports SSO | |
| 2. JWT tokens | |
| Stateless, good for APIs | |
| 3. Enter a custom value | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > indents multi-line descriptions correctly 1`] = ` | |
| "Single choice? | |
| β 1. Option 1 | |
| This is a very long description | |
| that is expected to wrap onto | |
| multiple lines in a narrow | |
| terminal. We want to ensure that | |
| all lines are correctly indented. | |
| 2. Enter a custom value | |
| Enter to select Β· β/β to navigate Β· Esc | |
| to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > indents multi-line descriptions correctly in multi-select mode 1`] = ` | |
| "Multi-select? | |
| (Select all that apply) | |
| β 1. [ ] Option 1 | |
| This is a very long description | |
| that is expected to wrap onto | |
| multiple lines in a narrow | |
| terminal. We want to ensure | |
| that all lines are correctly | |
| indented even with checkboxes. | |
| 2. [ ] Enter a custom value | |
| Done | |
| Finish selection | |
| Enter to select Β· β/β to navigate Β· Esc | |
| to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > renders question and options 1`] = ` | |
| "Which authentication method should we use? | |
| β 1. OAuth 2.0 | |
| Industry standard, supports SSO | |
| 2. JWT tokens | |
| Stateless, good for APIs | |
| 3. Enter a custom value | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > shows Review tab in progress header for multiple questions 1`] = ` | |
| "β β‘ Framework β β‘ Styling β β‘ Review β | |
| Which framework? | |
| β 1. React | |
| Component library | |
| 2. Vue | |
| Progressive framework | |
| 3. Enter a custom value | |
| Enter to select Β· β/β to switch questions Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > shows keyboard hints 1`] = ` | |
| "Which authentication method should we use? | |
| β 1. OAuth 2.0 | |
| Industry standard, supports SSO | |
| 2. JWT tokens | |
| Stateless, good for APIs | |
| 3. Enter a custom value | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > shows progress header for multiple questions 1`] = ` | |
| "β β‘ Database β β‘ ORM β β‘ Review β | |
| Which database should we use? | |
| β 1. PostgreSQL | |
| Relational database | |
| 2. MongoDB | |
| Document database | |
| 3. Enter a custom value | |
| Enter to select Β· β/β to switch questions Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > shows warning for unanswered questions on Review tab 1`] = ` | |
| "β β‘ License β β‘ README β β‘ Review β | |
| Review your answers: | |
| β You have 2 unanswered questions | |
| License β (not answered) | |
| README β (not answered) | |
| Enter to submit Β· Tab/Shift+Tab to edit answers Β· Esc to cancel | |
| " | |
| `; | |
| exports[`AskUserDialog > verifies "All of the above" visual state with snapshot 1`] = ` | |
| "Which features? | |
| (Select all that apply) | |
| 1. [x] TypeScript | |
| 2. [x] ESLint | |
| β 3. [x] All of the above | |
| Select all options | |
| 4. [ ] Enter a custom value | |
| Done | |
| Finish selection | |
| Enter to select Β· β/β to navigate Β· Esc to cancel | |
| " | |
| `; | |