-
Notifications
You must be signed in to change notification settings - Fork 1
✨ Log screenshot events for menubar display #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Each screenshot comparison now logs to server.log with: - screenshot name - status (passed/failed/new/etc) - diffPercentage
This comment has been minimized.
This comment has been minimized.
Code ReviewSummaryThis PR adds screenshot-level logging to enable the menubar app to display individual screenshot results. The implementation is clean and follows the existing logging patterns in the codebase. ✅ Positive Aspects
🔍 Observations & Questions
🐛 Potential IssuesMinor: Status may be 'failed' when it returns 'diff' Looking at lines 491-497, when This creates an inconsistency:
The menubar app might need to handle both 💡 Suggestions
it('should log screenshot events with name, status, and diffPercentage', async () => {
let mockOutput = createMockOutput();
// ... test implementation
assert.ok(mockOutput.calls.some(c =>
c.method === 'info' &&
c.args[0].startsWith('Screenshot:') &&
c.args[1].screenshot === 'expected-name' &&
c.args[1].status === 'passed'
));
});
🔒 Security & Performance
📊 Test Plan EnhancementCurrent test plan:
Suggested additions:
Overall AssessmentThis is a solid, focused PR that accomplishes its goal. The main recommendation is to add automated test coverage and clarify the status value mapping between the comparison object and HTTP response. The implementation follows existing patterns and shouldn't cause any issues in production. |
- Normalize status in logs ('failed' -> 'diff') to match HTTP response
- Add structured screenshot logging to accept/reject handlers for menubar
- Add tests for screenshot event logging behavior
Vizzly - Visual Test ResultsCLI Reporter - 7 changes need review
Changes needing review (7)filter-failed-only · Firefox · 1920×1080 · 0.1% diff fullscreen-viewer · Firefox · 1920×1080 · 0.1% diff bulk-accept-dialog · Firefox · 1920×1080 · 0.3% diff viewer-slide-mode · Firefox · 1920×1080 · 0.5% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.3% diff fullscreen-viewer · Firefox · 375×667 · 100.7% diff ...and 1 more in Vizzly.
|






Summary
Each screenshot comparison now logs to
server.logwith:This enables the menubar app to show individual screenshot results in the log viewer.
Test plan
server.logcontains screenshot entries