onlyoffice_documentserver_testing_framework 2.9.0 → 2.10.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: 549a8273d55e4763aa715b048a02dc05197975c408ba139fbfa0d6d5fbc4648c
4
- data.tar.gz: 0fe5138abec4d65fefbe86f7c8380a38e2d6f24f0340211584435dc4252e06fe
3
+ metadata.gz: 3d7a64abfcf73c447754f1baed6247d2f5795759bc7700fcf69b68efc5069131
4
+ data.tar.gz: 3fd1c539aa055955dac2d2d4e88fff52aa707a501c68cfb9c5eabcdbf6c75a81
5
5
  SHA512:
6
- metadata.gz: 88d398c768bf7fb178f3e1cc75beccc7a61d9185a1cf8bf62553b0847106cae488253bc152ec067d636703d284bea1afa7c1c1930c41521e6af055a7d50bbda5
7
- data.tar.gz: 37185151d10cba09b75e7d369403c28be46771267a4d702a180d467723b3899f1e1d93307b530b5847e1f7f8ed1976e4d8b8713fd9b777b89a80e27f81577575
6
+ metadata.gz: 7cd8e4a4dd97bf991ab8af8ecedd87738f72542cac4d4920b82061f5faa1c2490210ab70a352a8b2a692544c5f03c52e48caa148eb0c7f0c6d1da673f9d527ef
7
+ data.tar.gz: 41f906177e6c34952bfc4c20b6f146a26ffcd8df7f83953aec1069b955c280c86e54499c848635a785cc27b70fa147533cd0acb955b6dd341f9f292e5ee07993
@@ -91,8 +91,8 @@ module OnlyofficeDocumentserverTestingFramework
91
91
  # @param xpath [String] xpath to click
92
92
  # @return [nil]
93
93
  def click_on_displayed_button(xpath)
94
- selenium_functions :wait_element, xpath
95
- selenium_functions :click_on_displayed, xpath
94
+ selenium_functions(:wait_until_element_visible, xpath)
95
+ selenium_functions(:click_on_displayed, xpath)
96
96
  end
97
97
 
98
98
  # Is line enabled
@@ -7,7 +7,7 @@ module OnlyofficeDocumentserverTestingFramework
7
7
  # @param [Integer] timeout for wait for file to build
8
8
  # @return [Boolean] result of opening
9
9
  def reopen_after_autosave(timeout: 30)
10
- url = @instance.selenium.get_url
10
+ url = @instance.selenium.current_url
11
11
  leave_file_and_build_it(timeout: timeout)
12
12
  @instance.webdriver.open(url)
13
13
  @instance.management.wait_for_operation_with_round_status_canvas
@@ -150,7 +150,7 @@ class DocTestSiteFunctions
150
150
  # Get url of document which opened in editor
151
151
  # @return [String] url
152
152
  def current_document_storage_url
153
- page_source = @instance.selenium.get_page_source
153
+ page_source = @instance.selenium.page_source
154
154
  url_line = page_source.scan(/"?url"?: ".*$/).first
155
155
  url_line.delete('"').gsub('url: ', '').chop
156
156
  end
@@ -185,7 +185,7 @@ module OnlyofficeDocumentserverTestingFramework
185
185
  # @return [Symbol] editor typo of opened document
186
186
  def editor_type
187
187
  @instance.selenium.select_top_frame
188
- url = selenium_functions(:get_url)
188
+ url = selenium_functions(:current_url)
189
189
  case url
190
190
  when /documenteditor/
191
191
  :document
@@ -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.9.0'
7
+ STRING = '2.10.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.9.0
4
+ version: 2.10.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-08-07 00:00:00.000000000 Z
12
+ date: 2022-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper
@@ -32,6 +32,9 @@ dependencies:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1'
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 1.10.0
35
38
  type: :runtime
36
39
  prerelease: false
37
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -39,6 +42,9 @@ dependencies:
39
42
  - - "~>"
40
43
  - !ruby/object:Gem::Version
41
44
  version: '1'
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.10.0
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: overcommit
44
50
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
248
  - !ruby/object:Gem::Version
243
249
  version: '0'
244
250
  requirements: []
245
- rubygems_version: 3.3.19
251
+ rubygems_version: 3.3.20
246
252
  signing_key:
247
253
  specification_version: 4
248
254
  summary: ONLYOFFICE DocumentServer testing framework