feat(qa): add visual regression baseline snapshots for canvas and SVG cipher diagrams (#1476) - #1689
Conversation
… cipher diagrams (csxark#1476) - Add Playwright visual regression test suite tests/visual/diagrams.spec.ts targeting canvas and SVG diagram elements across core visualizers (Playfair, Rail Fence, Diffie-Hellman, HMAC, SM3, AES, S-Box Explorer) in light and dark modes - Add documentation guide tests/visual/README.md for visual baseline test execution and snapshot updates - Update playwright.config.ts testDir and testMatch to include tests/visual and tests/e2e - Update package.json test:visual script to execute Playwright on tests/visual and tests/e2e/visual.spec.ts - Add Vitest unit test suite tests/unit/visual/visualRegressionConfig.test.ts verifying visual test configuration parameters
|
@nayanraj864-cmyk is attempting to deploy a commit to the csxark's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reachedNext included review available in 30 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎉 Thank You for Your ContributionHello @nayanraj864-cmyk, Thank you for submitting a Pull Request to CryptoViz. We appreciate the time and effort you've invested in contributing to the project. Your Pull Request has been received successfully and will be reviewed by the maintainers as soon as possible. 📋 Pull Request Checklist
Ensuring these requirements are met helps streamline the review process and enables maintainers to review your contribution more efficiently. ❤️ Support CryptoVizIf you find CryptoViz helpful, consider supporting the project by:
Your support helps increase the project's visibility and encourages continued development. Thank you for being a part of the CryptoViz community! Thank you once again for contributing to CryptoViz. We appreciate your support and look forward to reviewing your contribution. |
🎉 Pull Request MergedHello @nayanraj864-cmyk, Thank you for your contribution to CryptoViz. Your Pull Request has been reviewed and successfully merged into the project. We sincerely appreciate the time and effort you invested in improving the project. Contributions like yours help make CryptoViz better for the entire community. We look forward to your future contributions and hope to collaborate with you again. ❤️ Support CryptoVizIf you find CryptoViz helpful, consider supporting the project by:
Your support helps increase the project's visibility and encourages continued development. Thank you for being a part of the CryptoViz community! |
Pull Request
Description
Implements issue #1476 by adding automated visual regression baseline snapshot tests targeting Canvas and SVG cipher diagrams under
tests/visual/, updating Playwright configuration, and integrating visual baseline execution into CI scripts.Related Issue
Closes #1476
Scope
lib/cipher/**)app/**,components/**)lib/workers/**,hooks/use*Worker.ts)docs/**,*.md, MDX content)tests/**)Changes Made
tests/visual/diagrams.spec.tscontaining Playwright element-level screenshot tests for Canvas and SVG visualizer diagrams (Playfair, Rail Fence, Diffie-Hellman, HMAC, SM3, AES, S-Box Explorer, and Dark Mode).playwright.config.tstestDirandtestMatchto includetests/visual/alongsidetests/e2e/.package.json"test:visual"script to"playwright test tests/visual tests/e2e/visual.spec.ts".tests/visual/README.mdand added Vitest unit test suitetests/unit/visual/visualRegressionConfig.test.ts.Testing
npm testpasses locally.npm run typecheckpasses locally.npm run lintpasses locally.lib/cipher/**file stays at or above 80%.Simulation vs. Live Data
Screenshots
(Automated Playwright screenshot comparison tests configured for Canvas and SVG cipher diagrams under
tests/visual/)Checklist
Applicable Checklist
Architecture Review Checklist
playwright.config.tstests/visual/toHaveScreenshotelement comparisonAdditional Notes
All Vitest unit tests (
npx vitest run tests/unit/visual/visualRegressionConfig.test.ts) passed cleanly.