browsery 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browsery/utils/page_object_helper.rb +3 -3
- data/lib/browsery/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ac1c58c9cfcb420e0bbc5d9a92bc7d88e261797
|
4
|
+
data.tar.gz: 5c445aa7260ad4ae6f72b617e925c06288e2662f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b747e0927e0824b085bfb455c38d7c48bc8fd7bedcb7ae73ed636d5503d9281df6e29133f44ad004daafceb38215e12fa304ec43b5b6319c7b6123dc53198e7e
|
7
|
+
data.tar.gz: 7c18c7cd76b7dfdcb029d684bc2726fbd139fca7333dd9b6698528ac8b9dc963b8dd473aeb47609c8da8a8f1c3974e0865b22e7f359a2ec46404fe0642feb8d3
|
@@ -229,14 +229,14 @@ module Browsery
|
|
229
229
|
diff_percentage = diff_image.calculate_changes
|
230
230
|
if diff_percentage > Browsery.settings.visual_regression
|
231
231
|
diff_image_path = "visual_regression/#{test_step_id}-diff.png"
|
232
|
-
diff_image.
|
233
|
-
|
234
|
-
fail
|
232
|
+
diff_image.save_diff(diff_image_path)
|
233
|
+
return false
|
235
234
|
end
|
236
235
|
else
|
237
236
|
@driver.save_screenshot("visual_regression/#{test_step_id}-base.png")
|
238
237
|
end
|
239
238
|
end
|
239
|
+
true
|
240
240
|
end
|
241
241
|
|
242
242
|
private
|
data/lib/browsery/version.rb
CHANGED