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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 290fd85dbec79c15456ca64597df0c3d36954352
4
- data.tar.gz: cb0bee66fb36a7f57c6f4ae7273a95a2dc268e31
3
+ metadata.gz: 3ac1c58c9cfcb420e0bbc5d9a92bc7d88e261797
4
+ data.tar.gz: 5c445aa7260ad4ae6f72b617e925c06288e2662f
5
5
  SHA512:
6
- metadata.gz: b5fdb785c1cf6db0f3e40c858b6d679d8b172b0751d5fb91543f26e0efa8597bc77a686991936fce544c9ff762e63fa515b3ac382d9def8b2da1d50950873378
7
- data.tar.gz: 294d1f43adcc23ae124e7219ae7c05dadffe205c7754f438329906a5d6a0d1dc69567b09c209152619506360cb858a6e3ca9c2750aabd795e45cf70a18747891
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.save(diff_image_path)
233
- puts "failed at visual regression, diff image saved - #{diff_image_path}"
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
@@ -1,3 +1,3 @@
1
1
  module Browsery
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browsery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peijie Hu