lookbook_visual_tester 0.5.8 → 0.5.9
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 +5 -0
- data/lib/lookbook_visual_tester/preview_checker.rb +13 -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: bdb2fab34bcfe26a82674cf59064c905627f03b72ebeb7e431da4ce6e6318127
|
|
4
|
+
data.tar.gz: f4e11dfc8329f9212b9ee9960c63c88b6ade65bd53d05a0ef1fc641c989c5fdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dd73d7e79fc7c350db0e4c61d68e0189eedb7e47f8dbcec4c3d48fb025ce14d0ef146c7c70390840e4d89ee4b5511727fe90846ce72e81e2ccb3e0da71406de
|
|
7
|
+
data.tar.gz: '0867a4319191296bf1fb95d83424d0d42bc7a5703504bd54c1a33c8019ed56469ad77bdaa976f86689dd3b7e4b3b3024b40606725158e235ecfb59c767acc341'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## [0.5.9] - 2026-01-12
|
|
3
|
+
|
|
4
|
+
### Fixed
|
|
5
|
+
- **Deep Check**: Ensure `ActionView::Template::Error` is correctly reported as a failure in `rake lookbook:deep_check`. This fixes an issue where rendered error pages were being ignored.
|
|
6
|
+
|
|
2
7
|
## [0.5.8] - 2026-01-08
|
|
3
8
|
|
|
4
9
|
### ✨ New Features & Improvements
|
|
@@ -163,8 +163,20 @@ module LookbookVisualTester
|
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
result.render_in(view_context)
|
|
166
|
+
output = result.render_in(view_context)
|
|
167
|
+
if output.is_a?(String) && output.include?('ActionView::Template::Error')
|
|
168
|
+
return CheckResult.new(preview_name: preview.name,
|
|
169
|
+
example_name:,
|
|
170
|
+
status: :failed, error: 'ActionView::Template::Error found in rendered output',
|
|
171
|
+
backtrace: [])
|
|
172
|
+
end
|
|
167
173
|
elsif result.is_a?(String)
|
|
174
|
+
if result.include?('ActionView::Template::Error')
|
|
175
|
+
return CheckResult.new(preview_name: preview.name,
|
|
176
|
+
example_name:,
|
|
177
|
+
status: :failed, error: 'ActionView::Template::Error found in rendered output',
|
|
178
|
+
backtrace: [])
|
|
179
|
+
end
|
|
168
180
|
# Rendered string, good.
|
|
169
181
|
elsif result.nil?
|
|
170
182
|
# If result is nil, it implies an implicit template rendering.
|