onlyoffice_documentserver_testing_framework 0.5.1 → 0.6.2
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/test_instance_docs/doc_service_welcome.rb +1 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb +3 -3
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management.rb +7 -3
- 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: fb63f18a3eec041fefe76e812fa820d7f81c484f02f06c296ac761e0caa61a9a
|
4
|
+
data.tar.gz: 467c6e4bf7781e94812a5d86d9f6730daeab106a9d8de91ebfa43e074964fe90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b912745a36bdfc27309c3949de66a63eea69db2cbb7a7167a32981c14c4500c5e6c8d0e5ab4190fac3308cdd1fcc78f466da25e5b3b338a9a298dc38a3c7135
|
7
|
+
data.tar.gz: 20531f3a13eb0dd2bb1e5a4923109d07ddcb4a84ff3d1b69f984838e0d2556f3c3b3808120333d968fb2fba62b1531f7016deeee1b2be9215fcf144941d8fa09
|
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
|
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
|
@@ -235,8 +235,8 @@ class DocTestSiteFunctions
|
|
235
235
|
'doc_test_site_languages_before_6_2.list'
|
236
236
|
end
|
237
237
|
File.readlines("#{File.expand_path('..', __dir__)}"\
|
238
|
-
|
239
|
-
|
238
|
+
'/test_instance_docs/doc_test_site_functions/'\
|
239
|
+
"#{file}")
|
240
240
|
.map(&:strip)
|
241
241
|
end
|
242
242
|
end
|
@@ -17,7 +17,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
17
17
|
@xpath_iframe_count = 1
|
18
18
|
# Don't mixup iframe with help
|
19
19
|
@xpath_iframe = '//iframe[not(contains(@src, "/help/")) and '\
|
20
|
-
|
20
|
+
'not(contains(@id, "fileFrame"))]'
|
21
21
|
@alert_dialog_xpath = '//div[@role="alertdialog"]'
|
22
22
|
@alert_dialog_span_xpath = "#{@alert_dialog_xpath}/div/div/div/span"
|
23
23
|
@xpath_window_modal = "//div[contains(@class, 'asc-window modal')]"
|
@@ -59,6 +59,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
59
59
|
def wait_for_mobile_loading
|
60
60
|
@instance.selenium.element_visible?('//*[contains(@class,"modal-preloader")]') ||
|
61
61
|
@instance.selenium.element_visible?('//*[contains(@class,"loader-page")]') ||
|
62
|
+
@instance.selenium.element_visible?('//div[contains(@class, "dialog-preloader")]') ||
|
62
63
|
@instance.selenium.get_element('//*[contains(@class,"iScrollVerticalScrollbar")]').nil?
|
63
64
|
end
|
64
65
|
|
@@ -79,6 +80,8 @@ module OnlyofficeDocumentserverTestingFramework
|
|
79
80
|
|
80
81
|
# Wait for operation with round status in canvas editor
|
81
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
|
82
85
|
def wait_for_operation_with_round_status_canvas(timeout_in_seconds = 300, options = {})
|
83
86
|
result = true
|
84
87
|
OnlyofficeLoggerHelper.log('Start waiting for Round Status')
|
@@ -90,8 +93,8 @@ module OnlyofficeDocumentserverTestingFramework
|
|
90
93
|
sleep(1)
|
91
94
|
current_wait_time += 1
|
92
95
|
OnlyofficeLoggerHelper.log('Waiting for Round Status for '\
|
93
|
-
|
94
|
-
|
96
|
+
"#{current_wait_time} of "\
|
97
|
+
"#{timeout_in_seconds} timeout")
|
95
98
|
@instance.doc_editor.windows.txt_options.txt_options = 'Unicode (UTF-8)'
|
96
99
|
@instance.spreadsheet_editor.windows.csv_option.csv_options = options
|
97
100
|
|
@@ -132,6 +135,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
132
135
|
@instance.selenium.execute_javascript('window.onbeforeunload = null') # OFF POPUP WINDOW
|
133
136
|
@instance.selenium.select_top_frame
|
134
137
|
add_error_handler
|
138
|
+
sleep(options.fetch(:additional_wait, 0))
|
135
139
|
result
|
136
140
|
end
|
137
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.2
|
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-08-27 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.
|
236
|
+
rubygems_version: 3.2.26
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: ONLYOFFICE DocumentServer testing framework
|