diff options
| author | Adam <[email protected]> | 2026-01-22 07:22:56 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-22 07:34:44 -0600 |
| commit | 0a678eeaccd91470166b6d64c1d4a2c5f615454c (patch) | |
| tree | 8f4c7c664f367e9eab1804c2d1c5e912294ff5f8 /specs | |
| parent | c031139b89dcc8962b38ead078aff7b4653adf54 (diff) | |
| download | opencode-0a678eeaccd91470166b6d64c1d4a2c5f615454c.tar.gz opencode-0a678eeaccd91470166b6d64c1d4a2c5f615454c.zip | |
test(app): file viewer smoke test
Diffstat (limited to 'specs')
| -rw-r--r-- | specs/08-app-e2e-smoke-suite.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/specs/08-app-e2e-smoke-suite.md b/specs/08-app-e2e-smoke-suite.md index 1a7a7a7dc..60b2f964a 100644 --- a/specs/08-app-e2e-smoke-suite.md +++ b/specs/08-app-e2e-smoke-suite.md @@ -25,7 +25,7 @@ Add 6 smoke tests to `packages/app/e2e/`: - [x] 2. Prompt slash command path: `/open` opens file picker (`packages/app/e2e/prompt-slash-open.spec.ts`) - [x] 3. Prompt @mention inserts a file pill token (`packages/app/e2e/prompt-mention.spec.ts`) - [x] 4. Model selection UI works end-to-end (`packages/app/e2e/model-picker.spec.ts`) -- [ ] 5. File viewer renders real file content +- [x] 5. File viewer renders real file content (`packages/app/e2e/file-viewer.spec.ts`) - [ ] 8. Terminal init + create new terminal --- @@ -183,9 +183,10 @@ Steps: 2. Open file picker (either `mod+p` or `/open`). 3. Search for `packages/app/package.json`. 4. Click the matching file result. -5. Assert the code viewer contains a known substring: +5. Ensure the new file tab is active (click the `package.json` tab if needed so the viewer mounts). +6. Assert the code viewer contains a known substring: - `"name": "@opencode-ai/app"`. -6. Optionally assert the file tab is active and visible. +7. Optionally assert the file tab is active and visible. Acceptance criteria: |
