Task: Integration tests - Progress panel + webview (90% coverage)
Description
Create integration tests for the webview progress panel that displays task details and progress notes. Test webview lifecycle, message passing, content rendering, and interaction with the extension host with 90% minimum coverage.
Acceptance Criteria
Technical Details
- Create test file:
test/integration/webview/progressPanel.test.ts
- Test scenarios:
- Webview panel creation with correct configuration
- Singleton pattern (createOrShow reuses existing panel)
- Message posting from extension to webview
- Message receiving from webview to extension
- HTML content injection with CSP headers
- Local resource loading (scripts, styles)
- Panel reveal in correct editor column
- Panel disposal on close
- State retention when hidden
- Progress note markdown rendering
- Task metadata display
- GitHub sync status indicators
- Use @vscode/test-electron for webview API testing
- Mock webview.postMessage and onDidReceiveMessage
- Create test HTML fixtures
- Test with actual webview rendering
- Files affected:
test/integration/webview/*.test.ts (new)
Dependencies
Effort Estimate
- Size: L
- Hours: 10
- Parallel: true
Definition of Done
Task: Integration tests - Progress panel + webview (90% coverage)
Description
Create integration tests for the webview progress panel that displays task details and progress notes. Test webview lifecycle, message passing, content rendering, and interaction with the extension host with 90% minimum coverage.
Acceptance Criteria
Technical Details
test/integration/webview/progressPanel.test.tstest/integration/webview/*.test.ts(new)Dependencies
Effort Estimate
Definition of Done