onlyoffice_documentserver_testing_framework 2.9.0 → 2.12.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 +1 -2
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_editor/doc_editor_top_toolbar/title_row.rb +9 -0
- 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: 2e3bf6bd9f394d852e203b95428089f45d1f4c0c4943a4a985ed9344e80eee98
|
4
|
+
data.tar.gz: b4f3282860c6a2a41b7cc71cf2474077fe9b32867013d994bd4a9d63ac36a049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21ce4720de8c66ffa5bc1d0cf10a9c438a59b0a8b284e0cd34f22349a0297250818848f2e530ec25a50509c31e9ad9b8553e25a96ceff74a78815068c2cc5c2
|
7
|
+
data.tar.gz: 6271bfc95ff0a81e9ed3587fadc7cd68dd7b9c82bab892b5a9642af3df9dcaab449148e41f3839f164b55215040a85dbed17ee9830c68914e2431c62649b62ef
|
@@ -91,8 +91,7 @@ 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 :click_on_displayed, xpath
|
94
|
+
selenium_functions(:click_on_displayed, xpath)
|
96
95
|
end
|
97
96
|
|
98
97
|
# Is line enabled
|
@@ -27,6 +27,15 @@ module OnlyofficeDocumentserverTestingFramework
|
|
27
27
|
name[-1] == '*'
|
28
28
|
end
|
29
29
|
|
30
|
+
# Rename current document
|
31
|
+
# @param [String] new_name to rename
|
32
|
+
# @return [nil]
|
33
|
+
def rename(new_name)
|
34
|
+
selenium_functions(:type_to_locator, @xpath_document_name, "#{new_name}\n", true, true)
|
35
|
+
OnlyofficeLoggerHelper.log("Renamed document to `#{new_name}` name")
|
36
|
+
OnlyofficeLoggerHelper.sleep_and_log('Wait for rename to complete', 5)
|
37
|
+
end
|
38
|
+
|
30
39
|
private
|
31
40
|
|
32
41
|
# @return [String] raw data from document name
|
@@ -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.12.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-21 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
|