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 +4 -4
- data/lib/onlyoffice_documentserver_testing_framework/selenium_wrapper.rb +2 -2
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/file_reopen_helper.rb +1 -1
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb +1 -1
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management.rb +1 -1
- data/lib/onlyoffice_documentserver_testing_framework/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7a64abfcf73c447754f1baed6247d2f5795759bc7700fcf69b68efc5069131
|
4
|
+
data.tar.gz: 3fd1c539aa055955dac2d2d4e88fff52aa707a501c68cfb9c5eabcdbf6c75a81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
95
|
-
selenium_functions
|
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.
|
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
|
data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb
CHANGED
@@ -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.
|
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(:
|
188
|
+
url = selenium_functions(:current_url)
|
189
189
|
case url
|
190
190
|
when /documenteditor/
|
191
191
|
:document
|
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.
|
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-
|
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.
|
251
|
+
rubygems_version: 3.3.20
|
246
252
|
signing_key:
|
247
253
|
specification_version: 4
|
248
254
|
summary: ONLYOFFICE DocumentServer testing framework
|