onlyoffice_documentserver_testing_framework 0.5.2 → 0.6.3
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 +4 -4
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_service_welcome.rb +1 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/doc_test_file_list/doc_test_site_file_list_entry.rb +21 -6
- 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 +3 -0
- data/lib/onlyoffice_documentserver_testing_framework/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04acc07cf491a9bc18639c27d3229024962ad61c906939ecf06336a74ebdf6de
|
4
|
+
data.tar.gz: f1ae9c65bc037fa956ce79e52b419b2297399fa7d21e169df7023557a0fe405a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c837d734fd95c9e7c3a1294290cb90f549cb01ada4bb653b7bad53430e7de366ec541949249bf3b84ec80402e486bc80e60597ad21d2369da668553dc97646d5
|
7
|
+
data.tar.gz: '0519b6fb0b316fb2a119b63b4df83c64f270cfdb9edd0ff43bb926e335e374455860fff1102d4c43aa0e40088f413c9fa961f78a3223dcc929bd073e8a1c0f72'
|
data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_service_welcome.rb
CHANGED
@@ -28,6 +28,7 @@ class DocServiceWelcome
|
|
28
28
|
# @return [Nothing]
|
29
29
|
def go_to_example
|
30
30
|
wait_load
|
31
|
+
@instance.selenium.wait_until_element_visible(@xpath_test_example)
|
31
32
|
@instance.selenium.click_on_locator(@xpath_test_example)
|
32
33
|
OnlyofficeLoggerHelper.log('Go to test example')
|
33
34
|
@instance.doc_test_functions.wait_load
|
@@ -44,7 +44,7 @@ class DocTestSiteFileListEntry
|
|
44
44
|
|
45
45
|
# @return [String] url on review mode
|
46
46
|
def fetch_review_mode_url
|
47
|
-
xpath_review = "#{@xpath_line}/td[
|
47
|
+
xpath_review = "#{@xpath_line}/td[#{mode_indexes[:review_mode]}]/a"
|
48
48
|
return nil unless @instance.selenium.element_present?(xpath_review)
|
49
49
|
|
50
50
|
url = @instance.selenium.get_attribute(xpath_review, 'href')
|
@@ -54,7 +54,7 @@ class DocTestSiteFileListEntry
|
|
54
54
|
|
55
55
|
# @return [String] url on review mode
|
56
56
|
def fetch_comment_mode_url
|
57
|
-
xpath_comment = "#{@xpath_line}/td[
|
57
|
+
xpath_comment = "#{@xpath_line}/td[#{mode_indexes[:comment_mode]}]/a"
|
58
58
|
return nil unless @instance.selenium.element_present?(xpath_comment)
|
59
59
|
|
60
60
|
url = @instance.selenium.get_attribute(xpath_comment, 'href')
|
@@ -64,7 +64,7 @@ class DocTestSiteFileListEntry
|
|
64
64
|
|
65
65
|
# @return [String] url on fill forms mode
|
66
66
|
def fetch_fill_forms_mode_url
|
67
|
-
xpath_comment = "#{@xpath_line}/td[
|
67
|
+
xpath_comment = "#{@xpath_line}/td[#{mode_indexes[:fill_forms]}]/a"
|
68
68
|
return nil unless @instance.selenium.element_present?(xpath_comment)
|
69
69
|
|
70
70
|
url = @instance.selenium.get_attribute(xpath_comment, 'href')
|
@@ -74,7 +74,7 @@ class DocTestSiteFileListEntry
|
|
74
74
|
|
75
75
|
# @return [String] url on fill forms mode
|
76
76
|
def fetch_only_fill_forms_mode_url
|
77
|
-
link_xpath = "#{@xpath_line}/td[
|
77
|
+
link_xpath = "#{@xpath_line}/td[#{mode_indexes[:only_fill_forms]}]/a"
|
78
78
|
return nil unless @instance.selenium.element_present?(link_xpath)
|
79
79
|
|
80
80
|
url = @instance.selenium.get_attribute(link_xpath, 'href')
|
@@ -84,7 +84,7 @@ class DocTestSiteFileListEntry
|
|
84
84
|
|
85
85
|
# @return [String] url on viewer mode
|
86
86
|
def fetch_view_mode_url
|
87
|
-
xpath_comments = "#{@xpath_line}/td[
|
87
|
+
xpath_comments = "#{@xpath_line}/td[#{mode_indexes[:view_mode]}]/a"
|
88
88
|
return nil unless @instance.selenium.element_present?(xpath_comments)
|
89
89
|
|
90
90
|
url = @instance.selenium.get_attribute(xpath_comments, 'href')
|
@@ -94,8 +94,23 @@ class DocTestSiteFileListEntry
|
|
94
94
|
|
95
95
|
# @return [String] url on embedded file
|
96
96
|
def fetch_embedded_url
|
97
|
-
url = @instance.selenium.get_attribute("#{@xpath_line}/td[
|
97
|
+
url = @instance.selenium.get_attribute("#{@xpath_line}/td[#{mode_indexes[:embedded]}]/a", 'href')
|
98
98
|
OnlyofficeLoggerHelper.log("Got embedded #{@xpath_line} url: #{url}")
|
99
99
|
url
|
100
100
|
end
|
101
|
+
|
102
|
+
private
|
103
|
+
|
104
|
+
# Indexes of different modes
|
105
|
+
# @return [Hash] name with index
|
106
|
+
def mode_indexes
|
107
|
+
{
|
108
|
+
comment_mode: 4,
|
109
|
+
review_mode: 5,
|
110
|
+
fill_forms: 6,
|
111
|
+
only_fill_forms: 7,
|
112
|
+
view_mode: 8,
|
113
|
+
embedded: 10
|
114
|
+
}
|
115
|
+
end
|
101
116
|
end
|
data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb
CHANGED
@@ -209,7 +209,7 @@ class DocTestSiteFunctions
|
|
209
209
|
|
210
210
|
# @return [Nothing]
|
211
211
|
def go_to_healthcheck
|
212
|
-
@instance.webdriver.open("#{@instance.user_data.portal}
|
212
|
+
@instance.webdriver.open("#{@instance.user_data.portal}healthcheck")
|
213
213
|
end
|
214
214
|
|
215
215
|
# @return [HealthcheckPage] page of healthcheck
|
@@ -80,6 +80,8 @@ module OnlyofficeDocumentserverTestingFramework
|
|
80
80
|
|
81
81
|
# Wait for operation with round status in canvas editor
|
82
82
|
# @param [Integer] timeout_in_seconds count of seconds to wait
|
83
|
+
# @param [Hash] options additional options
|
84
|
+
# @option options [Integer] :additional_wait additional after file open. 0 by default
|
83
85
|
def wait_for_operation_with_round_status_canvas(timeout_in_seconds = 300, options = {})
|
84
86
|
result = true
|
85
87
|
OnlyofficeLoggerHelper.log('Start waiting for Round Status')
|
@@ -133,6 +135,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
133
135
|
@instance.selenium.execute_javascript('window.onbeforeunload = null') # OFF POPUP WINDOW
|
134
136
|
@instance.selenium.select_top_frame
|
135
137
|
add_error_handler
|
138
|
+
sleep(options.fetch(:additional_wait, 0))
|
136
139
|
result
|
137
140
|
end
|
138
141
|
|
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: 0.
|
4
|
+
version: 0.6.3
|
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: 2021-
|
12
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: onlyoffice_logger_helper
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.2.
|
236
|
+
rubygems_version: 3.2.27
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: ONLYOFFICE DocumentServer testing framework
|