-
Notifications
You must be signed in to change notification settings - Fork 1
🧪 Fix SDK E2E tests to work with vizzly tdd run #183
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
base: main
Are you sure you want to change the base?
Conversation
🐻 Vizzly — 7 changes need review
Visual differences (7)fullscreen-viewer · Firefox · 1920×1080 · 1.5% diff search-no-results · Firefox · 1920×1080 · 0.1% diff search-no-results · Firefox · 375×978 · 3.3% diff bulk-accept-dialog · Firefox · 1920×1080 · 5.8% diff viewer-overlay-mode · Firefox · 1920×1080 · 1.6% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.3% diff ...and 1 more in Vizzly.
|
🐻 Vizzly — 1 change needs review
Visual differences (5)vizzly-help · 1202×1430 · 4.9% diff vizzly-invalid-command · 1202×578 · 12.0% diff vizzly-doctor · 1202×578 · 12.0% diff vizzly-run-help · 1202×722 · 9.6% diff vizzly-tdd-help · 1202×578 · 12.0% diff
|
Code Review - PR #183This PR makes significant improvements to SDK E2E tests, ensuring they work correctly when run via vizzly tdd run. The changes fix API misuse, improve test structure, and add proper server detection. Strengths
Issues FoundCRITICALCommand Injection in Ruby (clients/ruby/test/e2e_test.rb) WARNINGS
SUGGESTIONS
Performance
VerdictApprove with minor fixes Priority before merge:
Nice to have: shared E2E helpers, documentation, conditional CI execution Great work improving test infrastructure! |
8369a5a to
31d6df2
Compare
🐻 Vizzly — 5 changes need review
Visual differences (5)fullscreen-viewer · Firefox · 1920×1080 · 1.5% diff viewer-overlay-mode · Firefox · 1920×1080 · 1.6% diff fullscreen-viewer · Firefox · 375×667 · 0.9% diff search-no-results · Firefox · 375×978 · 3.5% diff viewer-zoomed-100 · Firefox · 375×667 · 198.1% diff
|
🐻 Vizzly — 1 change needs review
Visual differences (5)vizzly-help · 1202×1430 · 4.9% diff vizzly-doctor · 1202×578 · 12.0% diff vizzly-tdd-help · 1202×578 · 12.0% diff vizzly-invalid-command · 1202×578 · 12.0% diff vizzly-run-help · 1202×722 · 9.6% diff
|
31d6df2 to
890d746
Compare
🐻 Vizzly — Approved ✓19 comparisons approved.
Visual differences (8)bulk-accept-dialog · Firefox · 1920×1080 · 5.1% diff viewer-overlay-mode · Firefox · 1920×1080 · 1.6% diff search-no-results · Firefox · 1920×1080 · 0.1% diff fullscreen-viewer · Firefox · 1920×1080 · 1.5% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.3% diff search-no-results · Firefox · 375×978 · 3.5% diff ...and 2 more in Vizzly.
|
🐻 Vizzly — Approved ✓5 comparisons approved.
Visual differences (5)vizzly-help · 1202×1430 · 4.9% diff vizzly-tdd-help · 1202×578 · 12.0% diff vizzly-run-help · 1202×722 · 9.6% diff vizzly-doctor · 1202×578 · 12.0% diff vizzly-invalid-command · 1202×578 · 12.0% diff
|
- Detect VIZZLY_SERVER_URL env var to skip starting own TDD server - Fix Vitest tests to use correct browser mode API (getByRole, getByText) - Fix Static-Site tests to use URL-style paths (/, /features) not filenames - Fix Storybook pattern matching to use story.id format (*button*) - Fix Ember assertions to check result.status instead of result.success - Add proper config structure for page discovery (pageDiscovery.useSitemap) All SDK E2E tests now pass when run via `vizzly tdd run`: - Storybook: 13/13 - Static-Site: 13/13 - Ember: 9/9 - Vitest: 24/24 - Ruby: 10/10
890d746 to
242af43
Compare
🐻 Vizzly — Approved ✓18 comparisons approved.
Visual differences (8)fullscreen-viewer · Firefox · 1920×1080 · 1.6% diff search-no-results · Firefox · 1920×1080 · 0.1% diff bulk-accept-dialog · Firefox · 375×892 · 95.5% diff bulk-accept-dialog · Firefox · 1920×1080 · 5.8% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.3% diff search-no-results · Firefox · 375×978 · 3.2% diff ...and 2 more in Vizzly.
|
🐻 Vizzly — Approved ✓5 comparisons approved.
Visual differences (5)vizzly-doctor · 1202×578 · 12.0% diff vizzly-help · 1202×1430 · 4.9% diff vizzly-tdd-help · 1202×578 · 12.0% diff vizzly-run-help · 1202×722 · 9.6% diff vizzly-invalid-command · 1202×578 · 12.0% diff
|











































Summary
VIZZLY_SERVER_URLenv var in all SDK E2E tests to skip starting their own TDD server when running undervizzly tdd rungetByRole,getByText,getByTestId) instead of Playwright-stylepage.locator()/,/features) instead of filenames (index.html)story.idformat (*button*matchescomponents-button--primary)result.statusinstead ofresult.successpageDiscovery.useSitemapinstead of flatuseSitemap)Test Results
All SDK E2E tests now pass when run via
vizzly tdd run:Test plan
vizzly tdd runfor each SDK's E2E tests