onlyoffice_documentserver_testing_framework 2.2.1 → 2.3.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
  SHA256:
3
- metadata.gz: 36dbc0fe0c71ba6c46646fe89ce746a204c0ed709fd8ae41c9e838a589891fe1
4
- data.tar.gz: 30ed604f753f3ba08cb439316d58889e75ab08aef0dcfc7e0aed61a9d455c5cd
3
+ metadata.gz: 7ab7b2294145d4aaceb138342594c7270e474061641f87374f6df344d435d2ed
4
+ data.tar.gz: 7fffe8732f397203293276dee2d231e2c1cf75b8c56414edb0f0366a53cb58d5
5
5
  SHA512:
6
- metadata.gz: 53a1944e52d3eacdb27fa3fa6efbe7577e8cab07a6b848326ec41dae4f413caa9bdc5febbb323a419ac2ccc15b52bd1e7870c5e1b0f6e37aba3ab7fe1e7a20e9
7
- data.tar.gz: 87889c2899bb3889056b2fc509e527c51aa2b22a2098d3afd7083729cda2323f88d1bdcf1494899608a982df4169fb4a5879b71d6d3c311bb40d11363bd8f379
6
+ metadata.gz: cedc5215f243c8dea0001872f33dfd2174de722dae9d83b2a16130f28be58d47fe83b36b44cc1b8c9bfbc32924eddddaa8b60b8b2d17f8a5d1c11d1d153d33be
7
+ data.tar.gz: 2fb4b2a130a3d9d125080c0cf88d43284b32d0e23b5bf25ff74bf55999e93730029cafee289730b0f8618185928743b4a4ae441b662fa950ee00baa7ba98e3bb
@@ -20,7 +20,8 @@ module OnlyofficeDocumentserverTestingFramework
20
20
  size_before = @instance.integration_example_api.file_data(file_name)['pureContentLength'].to_i
21
21
  @instance.go_to_base_url
22
22
  @instance.webdriver.wait_until do
23
- @instance.integration_example_api.file_data(file_name)['pureContentLength'].to_i != size_before
23
+ file_data = @instance.integration_example_api.file_data(file_name)
24
+ !file_data.nil? && file_data['pureContentLength'].to_i != size_before
24
25
  end
25
26
  OnlyofficeLoggerHelper.log("File: `#{file_name}` was built after editing")
26
27
  end
@@ -6,9 +6,12 @@ require 'net/http'
6
6
  module OnlyofficeDocumentserverTestingFramework
7
7
  # Class for working with integration example api
8
8
  class IntegrationExampleApi
9
- def initialize(instance)
9
+ # @return [String] url of api endpoint
10
+ attr_reader :api_endpoint
11
+
12
+ def initialize(instance, api_endpoint: "#{instance.doc_server_base_url}/example")
10
13
  @instance = instance
11
- @api_endpoint = "#{@instance.doc_server_base_url}/example"
14
+ @api_endpoint = api_endpoint
12
15
  end
13
16
 
14
17
  # @return [Array<Hash>] list of file on example
@@ -4,6 +4,6 @@ module OnlyofficeDocumentserverTestingFramework
4
4
  # Module to hold version of Gem
5
5
  module Version
6
6
  # [String] version of gem
7
- STRING = '2.2.1'
7
+ STRING = '2.3.0'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_documentserver_testing_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-13 00:00:00.000000000 Z
12
+ date: 2022-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper