eyes_selenium 2.23.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/base/server_connector.rb +1 -2
- data/lib/applitools/base/test_results.rb +7 -14
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4efec3b3763869248b985c68efc0a932b784724
|
4
|
+
data.tar.gz: a0b3c5595ecd7bde50bf5f3936ce64c9963590f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 098e0d286171c2b2c302030bb3d15d708e542168176ecd700829d36d6f992802d9b10b4c3b28b7c63540518dc21c673488bffb0d4c860d777d4461ab67bd8af9
|
7
|
+
data.tar.gz: 88030ccc81bc0aadd43667162e65b18c9ab5a369fd347d8f706e7f00c88098352a1d4ea5e2cbb75576f339695cd2f045457dcfa0994e9b4ae4dd09ceab4c67cb
|
@@ -65,8 +65,7 @@ module Applitools::Base::ServerConnector
|
|
65
65
|
raise Applitools::EyesError.new("Request failed: #{res.status}") unless res.success?
|
66
66
|
|
67
67
|
response = Oj.load(res.body)
|
68
|
-
|
69
|
-
Applitools::Base::TestResults.new(*response.values)
|
68
|
+
Applitools::Base::TestResults.new(response)
|
70
69
|
end
|
71
70
|
|
72
71
|
private
|
@@ -1,26 +1,19 @@
|
|
1
1
|
module Applitools::Base
|
2
2
|
class TestResults
|
3
3
|
attr_accessor :is_new, :url
|
4
|
-
attr_reader :steps, :matches, :mismatches, :missing
|
5
|
-
:layout_matches, :none_matches
|
4
|
+
attr_reader :steps, :matches, :mismatches, :missing
|
6
5
|
|
7
|
-
def initialize(
|
8
|
-
|
9
|
-
@
|
10
|
-
@
|
11
|
-
@
|
12
|
-
@missing = missing
|
13
|
-
@exact_matches = exact_matches
|
14
|
-
@strict_matches = strict_matches
|
15
|
-
@content_matches = content_matches
|
16
|
-
@layout_matches = layout_matches
|
17
|
-
@none_matches = none_matches
|
6
|
+
def initialize(results = {})
|
7
|
+
@steps = results.fetch('steps', 0)
|
8
|
+
@matches = results.fetch('matches', 0)
|
9
|
+
@mismatches = results.fetch('mismatches', 0)
|
10
|
+
@missing = results.fetch('missing', 0)
|
18
11
|
@is_new = nil
|
19
12
|
@url = nil
|
20
13
|
end
|
21
14
|
|
22
15
|
def passed?
|
23
|
-
!is_new && mismatches
|
16
|
+
!is_new && !(mismatches > 0) && !(missing > 0)
|
24
17
|
end
|
25
18
|
alias_method :is_passed, :passed?
|
26
19
|
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|