lookbook_visual_tester 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +9 -3
- data/lib/lookbook_visual_tester/scenario_run.rb +1 -1
- data/lib/lookbook_visual_tester/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52de57eac4b35b3aba43c82000005b796b7bfb405fed5914ffda3ff3d6039b2f
|
|
4
|
+
data.tar.gz: a6c8e5faf0af703732a0438766299bb1300879997c64d6cc96188e1a2a3ab47b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78ee1ea32f42cbf2fe58f4178f03e7db493ab1598d1d80a65918c497bff2cb51778f6413b321ae8cda01248bd1714fd72ec0b44d6a968d33273234de21836d5c
|
|
7
|
+
data.tar.gz: 945d4767c88ec3121c11c6ea83e87ca286a5f5d8a1feb07b1fb10275b0c9139066047a348f9b6ce2f3d06d25f1ae09645a75aeba5dfdd99497cf2def48dddddf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
-
## [0.5.
|
|
2
|
+
## [0.5.4] - 2026-01-06
|
|
3
|
+
|
|
4
|
+
### Fixed
|
|
5
|
+
- **Variants URL Generation**: Fixed a bug where setting `VARIANTS` caused a `JSON::ParserError` in Lookbook. Variant parameters are now correctly serialized to JSON in the preview URL.
|
|
3
6
|
|
|
4
7
|
### Fixed
|
|
5
8
|
- **Deep Check**: `rake lookbook:deep_check` now correctly detects and fails when a preview returns `nil` (implicit rendering) but the corresponding template is missing (`ViewComponent::MissingPreviewTemplateError`).
|
data/README.md
CHANGED
|
@@ -28,8 +28,8 @@ sudo apt-get install imagemagick xclip
|
|
|
28
28
|
|
|
29
29
|
Add to your application's Gemfile:
|
|
30
30
|
```ruby
|
|
31
|
-
group :test do
|
|
32
|
-
gem 'lookbook_visual_tester', '~> 0.5.
|
|
31
|
+
group :test, :development do
|
|
32
|
+
gem 'lookbook_visual_tester', '~> 0.5.4'
|
|
33
33
|
end
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -166,7 +166,13 @@ bundle exec rake lookbook:missing
|
|
|
166
166
|
|
|
167
167
|
## Next Steps
|
|
168
168
|
|
|
169
|
-
- **
|
|
169
|
+
- **Enhanced Approval Workflow**: Implement a `rake lookbook:approve` task (and potentially an interactive mode) to verify and promote changes to baselines without manual file operations.
|
|
170
|
+
- **Tolerance Configuration**: Add support for configuring pixel mismatch tolerance levels to reduce flakiness in rendering (anti-aliasing, shadow rendering differences).
|
|
171
|
+
- **Ignore Regions**: Allow defining specific areas of a component to exclude from visual comparison (useful for unavoidable dynamic content).
|
|
172
|
+
- **Markdown Reports**: Generate markdown summaries of test runs suitable for posting automatically as Pull Request comments.
|
|
173
|
+
- **Cloud Storage**: Integration with cloud storage (S3, GCS) for managing baseline images to keep the git repository light.
|
|
174
|
+
- **CI/CD Blueprints**: Detailed guides and reusable actions/steps for integrating with GitHub Actions, GitLab CI, etc.
|
|
175
|
+
- **Multiple Browsers**: Expand driver support beyond Chrome/Ferrum (e.g. Firefox, Safari/Webkit) for cross-browser visual testing.
|
|
170
176
|
|
|
171
177
|
## Contributing
|
|
172
178
|
|
|
@@ -57,7 +57,7 @@ module LookbookVisualTester
|
|
|
57
57
|
|
|
58
58
|
if display_params.any?
|
|
59
59
|
# Transform display_params { theme: 'dark' } -> { _display: { theme: 'dark' } }
|
|
60
|
-
params[:_display] = display_params
|
|
60
|
+
params[:_display] = display_params.to_json
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
Lookbook::Engine.routes.url_helpers.lookbook_preview_url(
|