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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c2d1b0213253a59851177f4c3deab93a1b917a1b6fdc377489f4c64a2d40578
4
- data.tar.gz: 7d0a48a39e34dc27e675a3fa9147184540234feaf206c3b6f93803b8d81c7a40
3
+ metadata.gz: 0a7fc27f04467c3f761672ec57c2007529b67f0d7de28381d553088f82334ff8
4
+ data.tar.gz: 8796cdf363c255e27ad62b3c3021f3a167716f02eb2d9c59dfafce69d5b9907e
5
5
  SHA512:
6
- metadata.gz: 5494488e766199f13cdefe63932109742ae9116c0db27dd6b8d5e387b29eedde20f7acff54630287fef110320ef2a86c39717742c90029cc3895b50bd842eb02
7
- data.tar.gz: 89ffa58aca9a2db20caeb29eb4bac1614991569ce3212b367fa5a6584dc38d489d68e081db39ee6b914d8a746f5cb7c7aa3ed5a97f62001677b88c2d76a45711
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.save_page image_path
33
- image_path_read = File.open file
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(QAT::Web::Browser::HTMLDump.take_html_dump, 'text/html')
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
@@ -4,6 +4,6 @@ module QAT
4
4
  #@since 1.0.0
5
5
  module Web
6
6
  # Represents QAT-Web's version
7
- VERSION = '7.0.0'
7
+ VERSION = '7.0.1'
8
8
  end
9
9
  end
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.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-04-28 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qat-cucumber