onlyoffice_documentserver_testing_framework 2.13.0 → 2.15.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/selenium_wrapper_js_errors/ignored_errors.list +1 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_3.list +39 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_4.list +40 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb +6 -2
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/password_protected_helper.rb +6 -2
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb +32 -0
- data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management.rb +6 -0
- data/lib/onlyoffice_documentserver_testing_framework/version.rb +1 -1
- metadata +7 -136
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dcd99ee1b8704d781bbd13a5fdd439896cdad8ac31403cd2ef250152ccd4686
|
4
|
+
data.tar.gz: d03b0951ff7fff5210a900224901d2280fbc7f101816ba13b5a464c7631ad390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecbb1198ba4fd115b12c15dfdeda1afe5a385829b7b36a9f18e12e21ee7b9e0b52f37bafdc503384b4c0a68c97537933fa83d655629cb8cc02cc39d7f0e6a5d4
|
7
|
+
data.tar.gz: 817911868d567352490171461e654efa4ee822460c1b4f1b83e3c53bcd03e2bac46b971612704f0982d33932dd597be17ddea8dad2b7aa34a18eec5f376d6ea0
|
@@ -0,0 +1,39 @@
|
|
1
|
+
English
|
2
|
+
Armenian
|
3
|
+
Azerbaijani
|
4
|
+
Basque
|
5
|
+
Belarusian
|
6
|
+
Bulgarian
|
7
|
+
Catalan
|
8
|
+
Chinese (People's Republic of China)
|
9
|
+
Chinese (Traditional, Taiwan)
|
10
|
+
Czech
|
11
|
+
Danish
|
12
|
+
Dutch
|
13
|
+
Finnish
|
14
|
+
French
|
15
|
+
Galego
|
16
|
+
German
|
17
|
+
Greek
|
18
|
+
Hungarian
|
19
|
+
Indonesian
|
20
|
+
Italian
|
21
|
+
Japanese
|
22
|
+
Korean
|
23
|
+
Latvian
|
24
|
+
Lao
|
25
|
+
Malay (Malaysia)
|
26
|
+
Norwegian
|
27
|
+
Polish
|
28
|
+
Portuguese (Brazil)
|
29
|
+
Portuguese (Portugal)
|
30
|
+
Romanian
|
31
|
+
Russian
|
32
|
+
Slovak
|
33
|
+
Slovenian
|
34
|
+
Spanish
|
35
|
+
Swedish
|
36
|
+
Turkish
|
37
|
+
Ukrainian
|
38
|
+
Vietnamese
|
39
|
+
Test Language
|
@@ -0,0 +1,40 @@
|
|
1
|
+
English
|
2
|
+
Armenian
|
3
|
+
Azerbaijani
|
4
|
+
Basque
|
5
|
+
Belarusian
|
6
|
+
Bulgarian
|
7
|
+
Catalan
|
8
|
+
Chinese (Simplified)
|
9
|
+
Chinese (Traditional)
|
10
|
+
Czech
|
11
|
+
Danish
|
12
|
+
Dutch
|
13
|
+
Finnish
|
14
|
+
French
|
15
|
+
Galego
|
16
|
+
German
|
17
|
+
Greek
|
18
|
+
Hungarian
|
19
|
+
Indonesian
|
20
|
+
Italian
|
21
|
+
Japanese
|
22
|
+
Korean
|
23
|
+
Lao
|
24
|
+
Latvian
|
25
|
+
Malay (Malaysia)
|
26
|
+
Norwegian
|
27
|
+
Polish
|
28
|
+
Portuguese (Brazil)
|
29
|
+
Portuguese (Portugal)
|
30
|
+
Romanian
|
31
|
+
Russian
|
32
|
+
Sinhala (Sri Lanka)
|
33
|
+
Slovak
|
34
|
+
Slovenian
|
35
|
+
Spanish
|
36
|
+
Swedish
|
37
|
+
Turkish
|
38
|
+
Ukrainian
|
39
|
+
Vietnamese
|
40
|
+
Test Language
|
data/lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions.rb
CHANGED
@@ -225,8 +225,12 @@ class DocTestSiteFunctions
|
|
225
225
|
|
226
226
|
# @param [DocumentServerVersion] version of server
|
227
227
|
# @return [Array<String>] list of supported languages
|
228
|
-
def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7,
|
229
|
-
file = if version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7,
|
228
|
+
def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 4, 0))
|
229
|
+
file = if version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 4)
|
230
|
+
'doc_test_site_languages_after_7_4.list'
|
231
|
+
elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 3)
|
232
|
+
'doc_test_site_languages_after_7_3.list'
|
233
|
+
elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 2)
|
230
234
|
'doc_test_site_languages_after_7_2.list'
|
231
235
|
elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 1)
|
232
236
|
'doc_test_site_languages_after_7_1.list'
|
@@ -26,8 +26,12 @@ module OnlyofficeDocumentserverTestingFramework
|
|
26
26
|
|
27
27
|
@instance.webdriver.webdriver_error("Cannot open file with password: `#{password}`") if incorrect_password_shown?
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
# This is stage way to enter password, but
|
30
|
+
# for some reason entering it and clicking on Ok no longer works
|
31
|
+
# Not sure if it is webdriver or DocumentServer issue
|
32
|
+
# Current variant should work rather ok
|
33
|
+
@instance.selenium.send_keys_to_focused_elements("#{password}\n")
|
34
|
+
OnlyofficeLoggerHelper.log('Entered password in password dialog and pressed enter')
|
31
35
|
end
|
32
36
|
end
|
33
37
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnlyofficeDocumentserverTestingFramework
|
4
|
+
# Helper to handle files with external links
|
5
|
+
module UpdateLinksHelper
|
6
|
+
# @return [String] xpath of update links message
|
7
|
+
def update_links_message_xpath
|
8
|
+
'//span[contains(text(), "This workbook contains links to one or more external sources")]'
|
9
|
+
end
|
10
|
+
|
11
|
+
# @return [String] xpath of update button
|
12
|
+
def xpath_update_button
|
13
|
+
"#{update_links_message_xpath}/../../../..//button[@result='ok']"
|
14
|
+
end
|
15
|
+
|
16
|
+
# @return [String] xpath of don't update button
|
17
|
+
def xpath_do_not_update_button
|
18
|
+
"#{update_links_message_xpath}/../../../..//button[@result='cancel']"
|
19
|
+
end
|
20
|
+
|
21
|
+
# Handle update links dialog
|
22
|
+
def handle_update_links_message(to_update)
|
23
|
+
return unless selenium_functions(:element_visible?, update_links_message_xpath)
|
24
|
+
|
25
|
+
if to_update
|
26
|
+
selenium_functions(:click_on_locator, xpath_update_button, true)
|
27
|
+
else
|
28
|
+
selenium_functions(:click_on_locator, xpath_do_not_update_button, true)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative 'management/loader_helper'
|
4
4
|
require_relative 'management/manager_messages_checker'
|
5
5
|
require_relative 'management/password_protected_helper'
|
6
|
+
require_relative 'management/update_links_helper'
|
6
7
|
module OnlyofficeDocumentserverTestingFramework
|
7
8
|
# Class for management main methods
|
8
9
|
class Management
|
@@ -10,6 +11,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
10
11
|
include ManagerMessagesChecker
|
11
12
|
include LoaderHelper
|
12
13
|
include PasswordProtectedHelper
|
14
|
+
include UpdateLinksHelper
|
13
15
|
|
14
16
|
# @return [Integer] count of iframes to go into
|
15
17
|
attr_accessor :xpath_iframe_count
|
@@ -17,6 +19,8 @@ module OnlyofficeDocumentserverTestingFramework
|
|
17
19
|
attr_accessor :xpath_iframe
|
18
20
|
# Set file password
|
19
21
|
attr_accessor :password
|
22
|
+
# Set if should update links
|
23
|
+
attr_accessor :to_update
|
20
24
|
|
21
25
|
def initialize(instance)
|
22
26
|
@instance = instance
|
@@ -28,6 +32,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
28
32
|
@alert_dialog_span_xpath = "#{@alert_dialog_xpath}/div/div/div/span"
|
29
33
|
@xpath_window_modal = "//div[contains(@class, 'asc-window modal')]"
|
30
34
|
@xpath_anonymous_user_name_input = '//div[@id="id-dlg-username-caption"]'
|
35
|
+
@to_update = false
|
31
36
|
end
|
32
37
|
|
33
38
|
# @return [Boolean] check if loader present
|
@@ -105,6 +110,7 @@ module OnlyofficeDocumentserverTestingFramework
|
|
105
110
|
@instance.spreadsheet_editor.windows.csv_option.csv_options = options
|
106
111
|
|
107
112
|
check_2_5_version_error
|
113
|
+
handle_update_links_message(to_update)
|
108
114
|
handle_error
|
109
115
|
|
110
116
|
# Close 'Select Encoding' dialog if present
|
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.15.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:
|
12
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: onlyoffice_logger_helper
|
@@ -45,138 +45,6 @@ dependencies:
|
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.10.0
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: overcommit
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '13'
|
69
|
-
type: :development
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '13'
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: rspec
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3'
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '3'
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: rubocop
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1'
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1'
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: rubocop-performance
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1'
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1'
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: rubocop-rake
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: rubocop-rspec
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '2'
|
139
|
-
type: :development
|
140
|
-
prerelease: false
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '2'
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: simplecov
|
148
|
-
requirement: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: yard
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- - ">="
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: 0.9.20
|
170
|
-
type: :development
|
171
|
-
prerelease: false
|
172
|
-
version_requirements: !ruby/object:Gem::Requirement
|
173
|
-
requirements:
|
174
|
-
- - "~>"
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: '0'
|
177
|
-
- - ">="
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: 0.9.20
|
180
48
|
description: ONLYOFFICE DocumentServer testing framework, used in QA
|
181
49
|
email:
|
182
50
|
- shockwavenn@gmail.com
|
@@ -212,12 +80,15 @@ files:
|
|
212
80
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_6_2.list
|
213
81
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_1.list
|
214
82
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_2.list
|
83
|
+
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_3.list
|
84
|
+
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_4.list
|
215
85
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_before_6_2.list
|
216
86
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/integration_example_api.rb
|
217
87
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management.rb
|
218
88
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/loader_helper.rb
|
219
89
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/manager_messages_checker.rb
|
220
90
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/password_protected_helper.rb
|
91
|
+
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb
|
221
92
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/presentation_editor.rb
|
222
93
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/spreadsheet_editor.rb
|
223
94
|
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/spreadsheet_editor/spreadsheet_windows.rb
|
@@ -241,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
112
|
requirements:
|
242
113
|
- - ">="
|
243
114
|
- !ruby/object:Gem::Version
|
244
|
-
version: '
|
115
|
+
version: '3.0'
|
245
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
117
|
requirements:
|
247
118
|
- - ">="
|
248
119
|
- !ruby/object:Gem::Version
|
249
120
|
version: '0'
|
250
121
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.4.21
|
252
123
|
signing_key:
|
253
124
|
specification_version: 4
|
254
125
|
summary: ONLYOFFICE DocumentServer testing framework
|