eyes_selenium 3.17.18 → 3.17.19

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.
@@ -11,6 +11,15 @@ module Applitools
11
11
  self.semaphore = Mutex.new
12
12
  end
13
13
 
14
+ def keys
15
+ cache_map.keys
16
+ end
17
+
18
+ def urls_to_skip
19
+ return nil if keys.empty?
20
+ '"' + keys.map(&:to_s).join('", "') + '"'
21
+ end
22
+
14
23
  def contains?(url)
15
24
  semaphore.synchronize do
16
25
  check_key(url)
@@ -15,6 +15,7 @@ module Applitools
15
15
 
16
16
  class << self
17
17
  def parse_blob_from_script(blob, options = {})
18
+ return new(blob['url'], "application/X-error-response-#{blob['errorStatusCode']}", blob['value'] || '') if blob['errorStatusCode']
18
19
  content = Base64.decode64(blob['value'])
19
20
  new(blob['url'], blob['type'], content, options)
20
21
  end
@@ -123,7 +123,7 @@ module Applitools
123
123
  end
124
124
 
125
125
  script = <<-END
126
- #{Applitools::Selenium::Scripts::PROCESS_PAGE_AND_POLL} return __processPageAndSerializePoll();
126
+ #{Applitools::Selenium::Scripts::PROCESS_PAGE_AND_POLL} return __processPageAndSerializePoll(document, {skipResources: [#{visual_grid_manager.resource_cache.urls_to_skip}]});
127
127
  END
128
128
  render_task = nil
129
129
  target.default_full_page_for_vg
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.18'.freeze
4
+ VERSION = '3.17.19'.freeze
5
5
  end
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.17.18
4
+ version: 3.17.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2020-08-18 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.17.18
19
+ version: 3.17.19
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.17.18
26
+ version: 3.17.19
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: selenium-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement