eyes_selenium_ruby 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eyes_selenium_ruby/version.rb +1 -1
- data/spec/capybara_spec.rb +1 -0
- data/spec/eyes_spec.rb +2 -1
- metadata +3 -3
data/spec/capybara_spec.rb
CHANGED
@@ -10,6 +10,7 @@ describe Applitools::Eyes do
|
|
10
10
|
describe 'capybara' do
|
11
11
|
before do
|
12
12
|
eyes.agent_connector.stub(:stop_session).and_return(double("TestResults", mismatches: 0, missing: 0))
|
13
|
+
eyes.agent_connector.stub(:match_window).and_return(true)
|
13
14
|
@navigation = double("navigation")
|
14
15
|
@navigation.stub(:to)
|
15
16
|
end
|
data/spec/eyes_spec.rb
CHANGED
@@ -8,6 +8,7 @@ describe Applitools::Eyes do
|
|
8
8
|
fake_session = Applitools::Session.new(1,"http://fake_url.com", false)
|
9
9
|
eyes.session = fake_session
|
10
10
|
eyes.agent_connector.stub(:stop_session).and_return(double("TestResults", mismatches: 0, missing: 0))
|
11
|
+
eyes.agent_connector.stub(:match_window).and_return(true)
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "#new" do
|
@@ -141,7 +142,7 @@ describe Applitools::Eyes do
|
|
141
142
|
eyes.check_window("initial")
|
142
143
|
driver.find_element(:css, "li.pricing a").click
|
143
144
|
# return false unless user_inputs.map(&:to_hash) == [{"$type"=>"Applitools.Models.MouseTrigger, Core", :mouseAction=>1, :control=>{"$type"=>"Applitools.Utils.Geometry.MutableRegion, Core", :left=>555, :top=>0, :height=>69, :width=>50}, :location=>{:latitude=>25, :longitude=>34, :altitude=>nil}}]
|
144
|
-
|
145
|
+
eyes.check_window("pricing page")
|
145
146
|
el = driver.find_elements(:css, ".footer-row a").first
|
146
147
|
driver.action.double_click(el).perform
|
147
148
|
# return false unless user_inputs.map(&:to_hash) == [{"$type"=>"Applitools.Models.MouseTrigger, Core", :mouseAction=>3, :control=>{"$type"=>"Applitools.Utils.Geometry.MutableRegion, Core", :left=>0, :top=>0, :height=>115, :width=>376}, :location=>{:x=>115, :y=>376}}]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -202,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
segments:
|
204
204
|
- 0
|
205
|
-
hash: -
|
205
|
+
hash: -1204469244078562902
|
206
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
207
|
none: false
|
208
208
|
requirements:
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
segments:
|
213
213
|
- 0
|
214
|
-
hash: -
|
214
|
+
hash: -1204469244078562902
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
217
|
rubygems_version: 1.8.25
|