qat-web 7.0.0 → 7.0.1
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/qat/web/browser/screenshot.rb +2 -4
- data/lib/qat/web/hooks/html_dump.rb +4 -1
- data/lib/qat/web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a7fc27f04467c3f761672ec57c2007529b67f0d7de28381d553088f82334ff8
|
4
|
+
data.tar.gz: 8796cdf363c255e27ad62b3c3021f3a167716f02eb2d9c59dfafce69d5b9907e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 756778a83ec785faa5f40c6430595d265bb8fd1eed7f935fc3aae6c1175c0b271b9e0f53726776839107ead2d3be8d90f01723ee1d3135073deb058bc0f9b464
|
7
|
+
data.tar.gz: 8bb3e2dc3af755e3720293655e666b5fc09a87cde7d5ee74c684037a0618484758a1fe0071bedb8e84ed08fc863c0f42c87355639615ddc22fb302ab39db0370
|
@@ -29,12 +29,10 @@ module QAT::Web
|
|
29
29
|
|
30
30
|
##Helper for reading file, in cucumber 6 this could be reverted to path directly
|
31
31
|
def read_screenshot_file page, image_path
|
32
|
-
file = page.
|
33
|
-
|
34
|
-
image_path_read.read
|
32
|
+
file = page.save_screenshot image_path
|
33
|
+
File.open file
|
35
34
|
end
|
36
35
|
|
37
|
-
|
38
36
|
def screenshot_filename
|
39
37
|
File.basename(@screenshot_path)
|
40
38
|
end
|
@@ -15,7 +15,10 @@ After do |scenario|
|
|
15
15
|
if scenario.failed?
|
16
16
|
if QAT::Web::Exceptions::HTML_DUMP.any? { |exception| scenario.exception.kind_of?(exception) }
|
17
17
|
# Embeds an existing HTML dump to Cucumber's HTML report
|
18
|
-
attach
|
18
|
+
# This attach the content of the file in this case the attach method appears it doesn't allow atm to embed a file link as before
|
19
|
+
# attach(QAT::Web::Browser::HTMLDump.take_html_dump, 'text/html')
|
20
|
+
# Only saving the content to the public folder
|
21
|
+
QAT::Web::Browser::HTMLDump.take_html_dump
|
19
22
|
end
|
20
23
|
end
|
21
24
|
end
|
data/lib/qat/web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qat-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- QAT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: qat-cucumber
|