eyes_selenium 3.15.6.beta → 3.15.7.beta
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 +4 -4
- data/lib/applitools/selenium/configuration.rb +4 -3
- data/lib/applitools/selenium/devices.rb +10 -0
- data/lib/applitools/selenium/visual_grid/chrome_emulation_info.rb +0 -130
- data/lib/applitools/selenium/visual_grid/running_test.rb +1 -0
- data/lib/applitools/selenium/visual_grid/visual_grid_eyes.rb +7 -1
- data/lib/applitools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f310314bd69c6cdf7997b6b2a4198cd5bde9c8949d200e70386f4814c876078e
|
4
|
+
data.tar.gz: 5530cd7dbd51d0cfea656393653e295c47d4f8410ea8bede644e74e863a09fa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15bddcc282aa913b87811ef6f991bb3f9102e89db9e0395d46731df102058f6c5db89ef630ebf0ffabc5452f31f1e17a1f3a1a14c1c91ab6aad1a328ef0658ae
|
7
|
+
data.tar.gz: dc35a47ff1db17acf792f766658f833340c0d4052b8ddb3cda56f3d4a63c1dc484321b22d4b951e771d29bafa072eb18731c99d66e636c5f981062d6d5990ddf
|
@@ -48,9 +48,10 @@ module Applitools
|
|
48
48
|
self
|
49
49
|
end
|
50
50
|
|
51
|
-
def add_device_emulation(
|
52
|
-
Applitools::ArgumentGuard.not_nil
|
53
|
-
Applitools::
|
51
|
+
def add_device_emulation(device_name, orientation = Orientations::PORTRAIT)
|
52
|
+
Applitools::ArgumentGuard.not_nil device_name, 'device_name'
|
53
|
+
raise Applitools::EyesIllegalArgument, 'Wrong device name!' unless Devices.enum_values.include? device_name
|
54
|
+
emu = Applitools::Selenium::ChromeEmulationInfo.new(device_name, orientation)
|
54
55
|
add_browser { |b| b.emulation_info(emu) }
|
55
56
|
end
|
56
57
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
module Devices
|
2
|
+
extend self
|
2
3
|
IPhone4 = 'iPhone 4'.freeze
|
3
4
|
IPhone5SE = 'iPhone 5/SE'.freeze
|
4
5
|
IPhone678 = 'iPhone 6/7/8'.freeze
|
@@ -31,4 +32,13 @@ module Devices
|
|
31
32
|
LaptopWithTouch = 'Laptop with touch'.freeze
|
32
33
|
LaptopWithHDPIScreen = 'Laptop with HiDPI screen'.freeze
|
33
34
|
LaptopWithMDPIScreen = 'Laptop with MDPI screen'.freeze
|
35
|
+
|
36
|
+
def enum_values
|
37
|
+
[
|
38
|
+
IPhone4, IPhone5SE, IPhone678, IPhone678Plus, IPhoneX, IPad, IPadPro, BlackBerryZ30, Nexus4, Nexus5, Nexus5X,
|
39
|
+
Nexus6, Nexus6P, Pixel2, Pixel2XL, LGOptimusL70, NokiaN9, NokiaLumia520, MicrosoftLumia550, MicrosoftLumia950,
|
40
|
+
GalaxyS3, GalaxyS5, KindleFireHDX, IPadMini, BlackberryPlayBook, Nexus10, Nexus7, GalaxyNote3, GalaxyNote2,
|
41
|
+
LaptopWithTouch, LaptopWithHDPIScreen, LaptopWithMDPIScreen
|
42
|
+
]
|
43
|
+
end
|
34
44
|
end
|
@@ -2,136 +2,6 @@ require 'applitools/selenium/visual_grid/emulation_base_info'
|
|
2
2
|
module Applitools
|
3
3
|
module Selenium
|
4
4
|
class ChromeEmulationInfo < EmulationBaseInfo
|
5
|
-
class << self
|
6
|
-
def i_phone_4(orientation)
|
7
|
-
new Devices::IPhone4, orientation
|
8
|
-
end
|
9
|
-
|
10
|
-
def i_phone_5_se(orientation)
|
11
|
-
new Devices::IPhone5SE, orientation
|
12
|
-
end
|
13
|
-
|
14
|
-
def i_phone_6_7_8(orientation)
|
15
|
-
new Devices::IPhone678, orientation
|
16
|
-
end
|
17
|
-
|
18
|
-
def i_phone_6_7_8_plus(orientation)
|
19
|
-
new Devices::IPhone678Plus, orientation
|
20
|
-
end
|
21
|
-
|
22
|
-
def i_phone_x(orientation)
|
23
|
-
new Devices::IPhoneX, orientation
|
24
|
-
end
|
25
|
-
|
26
|
-
def i_pad(orientation)
|
27
|
-
new Devices::IPad, orientation
|
28
|
-
end
|
29
|
-
|
30
|
-
def i_pad_pro(orientation)
|
31
|
-
new Devices::IPadPro, orientation
|
32
|
-
end
|
33
|
-
|
34
|
-
def black_berry_z30(orientation)
|
35
|
-
new Devices::BlackBerryZ30, orientation
|
36
|
-
end
|
37
|
-
|
38
|
-
def nexus_4(orientation)
|
39
|
-
new Devices::Nexus4, orientation
|
40
|
-
end
|
41
|
-
|
42
|
-
def nexus_5(orientation)
|
43
|
-
new Devices::Nexus5, orientation
|
44
|
-
end
|
45
|
-
|
46
|
-
def nexus_5x(orientation)
|
47
|
-
new Devices::Nexus5X, orientation
|
48
|
-
end
|
49
|
-
|
50
|
-
def nexus_6(orientation)
|
51
|
-
new Devices::Nexus6, orientation
|
52
|
-
end
|
53
|
-
|
54
|
-
def nexus_6p(orientation)
|
55
|
-
new Devices::Nexus6P, orientation
|
56
|
-
end
|
57
|
-
|
58
|
-
def pixel_2(orientation)
|
59
|
-
new Devices::Pixel2, orientation
|
60
|
-
end
|
61
|
-
|
62
|
-
def pixel_2xl(orientation)
|
63
|
-
new Devices::Pixel2XL, orientation
|
64
|
-
end
|
65
|
-
|
66
|
-
def lg_optimus_l70(orientation)
|
67
|
-
new Devices::LGOptimusL70, orientation
|
68
|
-
end
|
69
|
-
|
70
|
-
def nokia_n9(orientation)
|
71
|
-
new Devices::NokiaN9, orientation
|
72
|
-
end
|
73
|
-
|
74
|
-
def nokia_lumia_520(orientation)
|
75
|
-
new Devices::NokiaLumia520, orientation
|
76
|
-
end
|
77
|
-
|
78
|
-
def microsoft_lumia_550(orientation)
|
79
|
-
new Devices::MicrosoftLumia550, orientation
|
80
|
-
end
|
81
|
-
|
82
|
-
def microsoft_lumia_950(orientation)
|
83
|
-
new Devices::MicrosoftLumia950, orientation
|
84
|
-
end
|
85
|
-
|
86
|
-
def galaxy_s3(orientation)
|
87
|
-
new Devices::GalaxyS3, orientation
|
88
|
-
end
|
89
|
-
|
90
|
-
def galaxy_s5(orientation)
|
91
|
-
new Devices::GalaxyS5, orientation
|
92
|
-
end
|
93
|
-
|
94
|
-
def kndle_fire_hdx(orientation)
|
95
|
-
new Devices::KindleFireHDX, orientation
|
96
|
-
end
|
97
|
-
|
98
|
-
def i_pad_mini(orientation)
|
99
|
-
new Devices::IPadMini, orientation
|
100
|
-
end
|
101
|
-
|
102
|
-
def blackberry_play_book(orientation)
|
103
|
-
new Devices::BlackberryPlayBook, orientation
|
104
|
-
end
|
105
|
-
|
106
|
-
def nexus_10(orientation)
|
107
|
-
new Devices::Nexus10, orientation
|
108
|
-
end
|
109
|
-
|
110
|
-
def nexus_7(orientation)
|
111
|
-
new Devices::Nexus7, orientation
|
112
|
-
end
|
113
|
-
|
114
|
-
def galaxy_note_3(orientation)
|
115
|
-
new Devices::GalaxyNote3, orientation
|
116
|
-
end
|
117
|
-
|
118
|
-
def galaxy_note_2(orientation)
|
119
|
-
new Devices::GalaxyNote2, orientation
|
120
|
-
end
|
121
|
-
|
122
|
-
def laptop_with_touch(orientation)
|
123
|
-
new Devices::LaptopWithTouch, orientation
|
124
|
-
end
|
125
|
-
|
126
|
-
def laptop_with_hdpi_screen(orientation)
|
127
|
-
new Devices::LaptopWithHDPIScreen, orientation
|
128
|
-
end
|
129
|
-
|
130
|
-
def laptop_with_mdpi_screen(orientation)
|
131
|
-
new Devices::LaptopWithMDPIScreen, orientation
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
5
|
attr_accessor :device_name
|
136
6
|
|
137
7
|
def initialize(device_name, screen_orientation)
|
@@ -61,7 +61,7 @@ module Applitools
|
|
61
61
|
def eyes_connector
|
62
62
|
logger.info("creating VisualGridEyes server connector")
|
63
63
|
::Applitools::Selenium::EyesConnector.new(server_url).tap do |connector|
|
64
|
-
connector.batch =
|
64
|
+
connector.batch = batch
|
65
65
|
connector.config = config.deep_clone
|
66
66
|
end
|
67
67
|
end
|
@@ -112,6 +112,12 @@ module Applitools
|
|
112
112
|
failed_results.empty? ? test_list.map(&:test_result).compact.first : failed_results
|
113
113
|
end
|
114
114
|
|
115
|
+
def abort_if_not_closed
|
116
|
+
test_list.each do |t|
|
117
|
+
t.abort_if_not_closed
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
115
121
|
def open?
|
116
122
|
opened
|
117
123
|
end
|
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.7.beta
|
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-04-
|
11
|
+
date: 2019-04-05 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.7.beta
|
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.7.beta
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|