eyes_selenium 3.15.12 → 3.15.13
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: ecbe94725c1ce01e2ad11547fed52cad25bd30135307626b086038beead9ff43
|
4
|
+
data.tar.gz: e5328f372f4f6cd936d4b0317160cc60ee7d6f18c206845c5b5848116c025194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0adfc8b78f8b81560e125621f289fd46a266dee45ac704aa12fc6b85a809a06339f3b2e7f7eab8d926e1ebdfd40003814e4147a86c86438d7b7412801460625
|
7
|
+
data.tar.gz: 70ef6e8deb2768dd0af991f4df2d64a46ede2f24f3fb693e83eb25c75bae672067ac0d817c0bcfbde8514d4c25eb81438257762024419a3b2a809b35e7a7232d
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module Applitools
|
2
2
|
module Selenium
|
3
3
|
class BrowsersInfo < Set
|
4
|
+
|
4
5
|
def add(obj)
|
5
6
|
return super if obj.is_a? Applitools::Selenium::RenderBrowserInfo
|
6
7
|
raise(
|
@@ -9,6 +10,16 @@
|
|
9
10
|
" but got #{obj.class} instead"
|
10
11
|
)
|
11
12
|
end
|
13
|
+
|
14
|
+
def each(viewport_size = nil)
|
15
|
+
return super() unless empty?
|
16
|
+
return unless viewport_size
|
17
|
+
default = Applitools::Selenium::RenderBrowserInfo.new.tap do |bi|
|
18
|
+
bi.viewport_size = viewport_size
|
19
|
+
bi.browser_type = BrowserTypes::CHROME
|
20
|
+
end
|
21
|
+
yield(default)
|
22
|
+
end
|
12
23
|
end
|
13
24
|
end
|
14
25
|
end
|
@@ -29,12 +29,19 @@ module Applitools
|
|
29
29
|
self.config = Applitools::Selenium::Configuration.new
|
30
30
|
end
|
31
31
|
|
32
|
+
def configure
|
33
|
+
return unless block_given?
|
34
|
+
yield(config)
|
35
|
+
end
|
32
36
|
|
33
37
|
def open(*args)
|
34
38
|
self.test_list = Applitools::Selenium::TestList.new
|
35
39
|
options = Applitools::Utils.extract_options!(args)
|
36
40
|
Applitools::ArgumentGuard.hash(options, 'options', [:driver])
|
37
41
|
|
42
|
+
config.app_name = options[:app_name] if config.app_name.nil? || config.app_name && config.app_name.empty?
|
43
|
+
config.test_name = options[:test_name] if config.test_name.nil? || config.test_name && config.test_name.empty?
|
44
|
+
|
38
45
|
self.driver = options.delete(:driver)
|
39
46
|
self.current_url = driver.current_url
|
40
47
|
|
@@ -49,7 +56,7 @@ module Applitools
|
|
49
56
|
logger.info("getting all browsers info...")
|
50
57
|
browsers_info_list = config.browsers_info
|
51
58
|
logger.info("creating test descriptors for each browser info...")
|
52
|
-
browsers_info_list.each do |bi|
|
59
|
+
browsers_info_list.each(viewport_size) do |bi|
|
53
60
|
test_list.push Applitools::Selenium::RunningTest.new(eyes_connector, bi, driver)
|
54
61
|
end
|
55
62
|
self.opened = true
|
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: 3.15.
|
4
|
+
version: 3.15.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.15.
|
19
|
+
version: 3.15.13
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.15.
|
26
|
+
version: 3.15.13
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|