percy-capybara 4.3.2 → 4.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy.rb +2 -2
- data/lib/version.rb +1 -1
- data/yarn.lock +10 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 717ca7b919d62141b87ac78e8e4df1a8a47770456afbd41e03aa264fbb1d50c8
|
4
|
+
data.tar.gz: 5056d828fa6d4780f135302346a9db2d1de372ccc79a12fd0c425ea95b0109ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c1cb571277f052fd9650174b616f6fc1e35dab61a5aa54bd0cca9d9241ee056a3e92ba88d40a208792397c0fc64e4f3e54803104dea296ba85a365876d85b7
|
7
|
+
data.tar.gz: bd59a0f4e2614cdc0c09f9ee9496ac0257d6743ae6b54e3168468f0bc13686f8fb0737722499e0fdff47e241624cd3ec66906769174348433a1bc60eee9e7cca
|
data/lib/percy.rb
CHANGED
@@ -77,12 +77,12 @@ module Percy
|
|
77
77
|
|
78
78
|
begin
|
79
79
|
page.execute_script(agent_js)
|
80
|
-
domsnapshot_js = "
|
80
|
+
domsnapshot_js = "return new window.PercyAgent({ handleAgentCommunication: false }).domSnapshot(document, #{options.to_json})"
|
81
81
|
|
82
82
|
# If we can use evalaute, use it (generally for capybara drivers)
|
83
83
|
# `execute_script` should work, but some Capybara drivers specifically return nil from this method
|
84
84
|
if page.respond_to?('evaluate_script')
|
85
|
-
dom_snapshot = page.evaluate_script(domsnapshot_js)
|
85
|
+
dom_snapshot = page.evaluate_script("(function() { #{domsnapshot_js} })()")
|
86
86
|
else
|
87
87
|
# if the driver doesn't have evaluate, it's probably a selenium driver
|
88
88
|
dom_snapshot = page.execute_script(domsnapshot_js)
|
data/lib/version.rb
CHANGED
data/yarn.lock
CHANGED
@@ -294,9 +294,9 @@ bcrypt-pbkdf@^1.0.0:
|
|
294
294
|
tweetnacl "^0.14.3"
|
295
295
|
|
296
296
|
bl@^4.0.1:
|
297
|
-
version "4.0.
|
298
|
-
resolved "https://registry.yarnpkg.com/bl/-/bl-4.0.
|
299
|
-
integrity sha512-
|
297
|
+
version "4.0.3"
|
298
|
+
resolved "https://registry.yarnpkg.com/bl/-/bl-4.0.3.tgz#12d6287adc29080e22a705e5764b2a9522cdc489"
|
299
|
+
integrity sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==
|
300
300
|
dependencies:
|
301
301
|
buffer "^5.5.0"
|
302
302
|
inherits "^2.0.4"
|
@@ -1620,16 +1620,7 @@ readable-stream@^2.3.6:
|
|
1620
1620
|
string_decoder "~1.1.1"
|
1621
1621
|
util-deprecate "~1.0.1"
|
1622
1622
|
|
1623
|
-
readable-stream@^3.1.1:
|
1624
|
-
version "3.4.0"
|
1625
|
-
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.4.0.tgz#a51c26754658e0a3c21dbf59163bd45ba6f447fc"
|
1626
|
-
integrity sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==
|
1627
|
-
dependencies:
|
1628
|
-
inherits "^2.0.3"
|
1629
|
-
string_decoder "^1.1.1"
|
1630
|
-
util-deprecate "^1.0.1"
|
1631
|
-
|
1632
|
-
readable-stream@^3.4.0:
|
1623
|
+
readable-stream@^3.1.1, readable-stream@^3.4.0:
|
1633
1624
|
version "3.6.0"
|
1634
1625
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
|
1635
1626
|
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
|
@@ -1725,11 +1716,16 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
|
1725
1716
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
|
1726
1717
|
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
|
1727
1718
|
|
1728
|
-
safe-buffer@^5.0.1, safe-buffer@^5.1.2
|
1719
|
+
safe-buffer@^5.0.1, safe-buffer@^5.1.2:
|
1729
1720
|
version "5.2.0"
|
1730
1721
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"
|
1731
1722
|
integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==
|
1732
1723
|
|
1724
|
+
safe-buffer@~5.2.0:
|
1725
|
+
version "5.2.1"
|
1726
|
+
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
|
1727
|
+
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
|
1728
|
+
|
1733
1729
|
"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0:
|
1734
1730
|
version "2.1.2"
|
1735
1731
|
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.1.
|
147
|
+
rubygems_version: 3.1.2
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Percy
|