eyes_selenium 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 895307ec918bff0502fa49b951d2cbee119042fd
4
- data.tar.gz: 6c7cc9590dd8e500c932666c4503e1b8cc4412d6
3
+ metadata.gz: eb0e2180f6bc37088d848c7f72d32c7a8f2bf1a5
4
+ data.tar.gz: f815d843a06af0b271c0a8b8e72c723429ad508b
5
5
  SHA512:
6
- metadata.gz: 5153a65ae4f19faa5c26489b82aa6e37cde45c3d3015f83951bfaa646dc92e777509a555b090c6d04085dbb16372096dcef980067b5743f0d77027c366395869
7
- data.tar.gz: 167494187f8870bbc825a20cd1efb386c37fe0392d09941c6be645ead06a677c83d6148ef5469aefb5fe21edd98d9135d927195b107cdd7dc5bc046cf05205d2
6
+ metadata.gz: cccd36fb6e9568d7a5f7b594197bf0a591faa404f09454f13c281c625c03f785b4ccb065cd3f2256aeb43ecf2cfc66ec2c69e93c6a3885f61b4b7995c79d8ac1
7
+ data.tar.gz: 8d4775c59074e78fc8d7f3080cfc5b725f960eb1e66c6a0d1ab6182eb081a52d1acd18b02844d8f70603d99f808d9d960366bb1771fb5b410fe6cc5f02b84ebe
@@ -13,7 +13,7 @@ class Applitools::Eyes
13
13
  attr_reader :app_name, :test_name, :is_open, :viewport_size, :driver
14
14
  attr_accessor :match_timeout, :batch, :host_os, :host_app, :branch_name, :parent_branch_name, :user_inputs,
15
15
  :save_new_tests, :save_failed_tests, :api_key, :is_disabled, :server_url, :agent_id, :log_handler,
16
- :failure_reports, :match_level
16
+ :failure_reports, :match_level, :baseline_name
17
17
 
18
18
  def log_handler
19
19
  EyesLogger.log_handler
@@ -267,7 +267,7 @@ class Applitools::Eyes
267
267
  self.batch ||= Applitools::BatchInfo.new
268
268
  app_env = Applitools::Environment.new(host_os, host_app, viewport_size, inferred_environment)
269
269
  self.session_start_info = Applitools::StartInfo.new(
270
- full_agent_id, app_name, test_name, batch, app_env, match_level, nil, branch_name, parent_branch_name
270
+ full_agent_id, app_name, test_name, batch, baseline_name, app_env, match_level, nil, branch_name, parent_branch_name
271
271
  )
272
272
  self.session = agent_connector.start_session(session_start_info)
273
273
  self.should_match_window_run_once_on_timeout = session.new_session?
@@ -1,20 +1,21 @@
1
1
  class Applitools::StartInfo
2
2
 
3
- ATTRIBUTES = %w[ agent_id app_id_or_name ver_id scenario_id_or_name batch_info
4
- environment application match_level branch_name parent_branch_name ]
3
+ ATTRIBUTES = %w[ agent_id app_id_or_name scenario_id_or_name batch_info env_name
4
+ environment match_level ver_id branch_name parent_branch_name ]
5
5
 
6
6
  ATTRIBUTES.each do |attr|
7
7
  attr_accessor attr
8
8
  end
9
9
 
10
10
  ## add a config file with this stuff, and use hash arg
11
- def initialize(agent_id, app_id_or_name, scenario_id_or_name, batch_info, environment, match_level, ver_id=nil,
11
+ def initialize(agent_id, app_id_or_name, scenario_id_or_name, batch_info, env_name, environment, match_level, ver_id=nil,
12
12
  branch_name=nil, parent_branch_name=nil)
13
13
  @agent_id = agent_id
14
14
  @app_id_or_name = app_id_or_name
15
15
  @ver_id = ver_id
16
16
  @scenario_id_or_name = scenario_id_or_name
17
17
  @batch_info = batch_info
18
+ @env_name = env_name
18
19
  @environment = environment
19
20
  @match_level = match_level
20
21
  @branch_name = branch_name
@@ -24,7 +25,7 @@ class Applitools::StartInfo
24
25
  def to_hash
25
26
  {
26
27
  AgentId: agent_id, AppIdOrName: app_id_or_name, VerId: ver_id, ScenarioIdOrName: scenario_id_or_name,
27
- BatchInfo: batch_info.to_hash, Environment: environment.to_hash, matchLevel: match_level, branchName: branch_name,
28
+ BatchInfo: batch_info.to_hash, EnvName: env_name, Environment: environment.to_hash, matchLevel: match_level, branchName: branch_name,
28
29
  parentBranchName: parent_branch_name
29
30
  }
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.0'
3
3
  end
data/test_script.rb CHANGED
@@ -12,17 +12,11 @@ eyes.log_handler = Logger.new(STDOUT)
12
12
 
13
13
  begin
14
14
  eyes.test(app_name: 'Ruby SDK', test_name: 'Applitools website test', viewport_size: {width: 1024, height: 768}, driver: my_webdriver) do |driver|
15
- driver.get "http://www.applitools.com"
16
- eyes.check_window("initial")
15
+ driver.get 'http://www.applitools.com'
16
+ eyes.check_window('initial')
17
17
  eyes.check_region(:css, 'li.pricing', 'Pricing button')
18
- driver.find_element(:css, "li.pricing a").click
19
- eyes.check_window("pricing page")
20
- el = driver.find_elements(:css, ".footer-row a").first
21
- driver.action.double_click(el).perform
22
- eyes.check_window("in forms")
23
- other_el = driver.find_elements(:css, ".s2member-pro-paypal-registration-email").first
24
- driver.action.move_to(other_el).click(other_el).send_keys("applitools").perform
25
- eyes.check_window("end")
18
+ driver.find_element(:css, 'li.pricing a').click
19
+ eyes.check_window('pricing page')
26
20
  end
27
21
  ensure
28
22
  my_webdriver.quit
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.3.0
4
+ version: 2.4.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: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver