capybara-screenshot-diff 1.7.0 → 1.7.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5720ce552818a78eecc14cea2ba443d1788c282d21a063c0088109f3115e78b
|
|
4
|
+
data.tar.gz: fe2635d43016fa6350687c77f7d17ff1a11beb1d0e56f7357b63a04e4fb590ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a0830ab529fcbacf843e3ea7ae168a752ca4b5b03f613e81437e5e7856037856ac9b7562e6a78304ecb8257ac9286456db669fe8e1763b94db1436e79c59439
|
|
7
|
+
data.tar.gz: 00d73d7a68b91b8ec35ae828b27141723c6cc67ed57d73b7780e3b8942d11eb383f410225af347e0acf078459eb674e7da93fa329758b5cc4a475a4129fccdf1
|
|
@@ -78,7 +78,7 @@ module Capybara
|
|
|
78
78
|
|
|
79
79
|
comparison = ImageCompare.new(file_name, nil, driver_options)
|
|
80
80
|
checkout_vcs(name, comparison.old_file_name, comparison.new_file_name)
|
|
81
|
-
|
|
81
|
+
take_comparison_screenshot(comparison, crop, stability_time_limit, wait)
|
|
82
82
|
|
|
83
83
|
return false unless comparison.old_file_exists?
|
|
84
84
|
|
|
@@ -112,7 +112,7 @@ module Capybara
|
|
|
112
112
|
FileUtils.mkdir_p File.dirname(file_name)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
def
|
|
115
|
+
def take_comparison_screenshot(comparison, crop, stability_time_limit, wait)
|
|
116
116
|
blurred_input = prepare_page_for_screenshot(timeout: wait)
|
|
117
117
|
if stability_time_limit
|
|
118
118
|
take_stable_screenshot(
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capybara-screenshot-diff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Uwe Kubosch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|