onlyoffice_documentserver_testing_framework 2.17.0 → 2.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bcde4ab727049948a6242bbb9bbb77a287bb43e5f8f445ba6abb3d55ba480a0
4
- data.tar.gz: 193c88c0aeee333aa8c4419eb0345379e7715e66cb38a5369f33b92ba26110e4
3
+ metadata.gz: 20aa5c3e8a57cb83e5259631725954fd93ca463faf3f0d68eadd94d31cb29027
4
+ data.tar.gz: 50e4a3edcb45e9113fa144e91c5136b2793a0a2c518481dfa6f39ce87e1f14ce
5
5
  SHA512:
6
- metadata.gz: 27f6f645393b043c23a09975c0f4d8319b2bca3a332c06aad53bb91d76c005005a08903ae67cc1118adebdc276792808c78c23bd42535feac0786e40e6224675
7
- data.tar.gz: 29b99c529db8a922807cf981b84e0b12be226a8b192d552924fdc955365cce81de5cac4f5cb2e6593751c9ac0b588723c4574c74f36bd663ef556f3c7d39bf38
6
+ metadata.gz: 4a2dacd7cf0029864fc40d01632e197a7c10c1d8bbf4fb901c98cc5cc6bd99d6ef18ba1abd172a0ee5043d897fed7d8dc28632541412d325baf8bee48bcd2388
7
+ data.tar.gz: d7fdfcdb370ca9c0eef5504c504a95241f6087958da81e68dd5a7ec0b53e7ee46f4c443bf8badc1e586d66e59486613417c7a6c09a2edffde263e62ff4050a43
@@ -30,3 +30,4 @@ ResponsiveVoice missing API key
30
30
  UserControls/Management
31
31
  clientscript/
32
32
  was loaded over an insecure connection. This file should be served over HTTPS.
33
+ https://www.googletagmanager.com/
@@ -0,0 +1,44 @@
1
+ English
2
+ Arabic
3
+ Armenian
4
+ Azerbaijani
5
+ Basque
6
+ Belarusian
7
+ Bulgarian
8
+ Catalan
9
+ Chinese (Simplified)
10
+ Chinese (Traditional)
11
+ Czech
12
+ Danish
13
+ Dutch
14
+ English (United Kingdom)
15
+ Finnish
16
+ French
17
+ Galego
18
+ German
19
+ Greek
20
+ Hungarian
21
+ Indonesian
22
+ Italian
23
+ Japanese
24
+ Korean
25
+ Lao
26
+ Latvian
27
+ Malay (Malaysia)
28
+ Norwegian
29
+ Polish
30
+ Portuguese (Brazil)
31
+ Portuguese (Portugal)
32
+ Romanian
33
+ Russian
34
+ Serbian (Cyrillic)
35
+ Serbian (Latin)
36
+ Sinhala (Sri Lanka)
37
+ Slovak
38
+ Slovenian
39
+ Spanish
40
+ Swedish
41
+ Turkish
42
+ Ukrainian
43
+ Vietnamese
44
+ Test Language
@@ -0,0 +1,45 @@
1
+ English
2
+ Arabic
3
+ Armenian
4
+ Azerbaijani
5
+ Basque
6
+ Belarusian
7
+ Bulgarian
8
+ Catalan
9
+ Chinese (Simplified)
10
+ Chinese (Traditional)
11
+ Czech
12
+ Danish
13
+ Dutch
14
+ English (United Kingdom)
15
+ Finnish
16
+ French
17
+ Galego
18
+ German
19
+ Greek
20
+ Hebrew (Israel)
21
+ Hungarian
22
+ Indonesian
23
+ Italian
24
+ Japanese
25
+ Korean
26
+ Lao
27
+ Latvian
28
+ Malay (Malaysia)
29
+ Norwegian
30
+ Polish
31
+ Portuguese (Brazil)
32
+ Portuguese (Portugal)
33
+ Romanian
34
+ Russian
35
+ Serbian (Cyrillic)
36
+ Serbian (Latin)
37
+ Sinhala (Sri Lanka)
38
+ Slovak
39
+ Slovenian
40
+ Spanish
41
+ Swedish
42
+ Turkish
43
+ Ukrainian
44
+ Vietnamese
45
+ Test Language
@@ -229,22 +229,28 @@ class DocTestSiteFunctions
229
229
 
230
230
  # @param [DocumentServerVersion] version of server
231
231
  # @return [Array<String>] list of supported languages
232
- def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 0, 0))
233
- file = if version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 0)
234
- 'doc_test_site_languages_after_8_0.list'
235
- elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 4)
236
- 'doc_test_site_languages_after_7_4.list'
237
- elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 3)
238
- 'doc_test_site_languages_after_7_3.list'
239
- elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 2)
240
- 'doc_test_site_languages_after_7_2.list'
241
- elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 1)
242
- 'doc_test_site_languages_after_7_1.list'
243
- elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(6, 2)
244
- 'doc_test_site_languages_after_6_2.list'
245
- else
246
- 'doc_test_site_languages_before_6_2.list'
247
- end
232
+ def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 2, 0))
233
+ version_class = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion
234
+ version_mappings = [
235
+ [version_class.new(8, 2), 'doc_test_site_languages_after_8_2.list'],
236
+ [version_class.new(8, 1), 'doc_test_site_languages_after_8_1.list'],
237
+ [version_class.new(8, 0), 'doc_test_site_languages_after_8_0.list'],
238
+ [version_class.new(7, 4), 'doc_test_site_languages_after_7_4.list'],
239
+ [version_class.new(7, 3), 'doc_test_site_languages_after_7_3.list'],
240
+ [version_class.new(7, 2), 'doc_test_site_languages_after_7_2.list'],
241
+ [version_class.new(7, 1), 'doc_test_site_languages_after_7_1.list'],
242
+ [version_class.new(6, 2), 'doc_test_site_languages_after_6_2.list']
243
+ ]
244
+
245
+ file = 'doc_test_site_languages_before_6_2.list'
246
+
247
+ version_mappings.each do |ver, file_name|
248
+ if version >= ver
249
+ file = file_name
250
+ break
251
+ end
252
+ end
253
+
248
254
  File.readlines("#{File.expand_path('..', __dir__)}" \
249
255
  '/test_instance_docs/doc_test_site_functions/' \
250
256
  "languages_list/#{file}")
@@ -32,6 +32,10 @@ module OnlyofficeDocumentserverTestingFramework
32
32
  .gsub('px', '').to_i.positive?
33
33
 
34
34
  error = selenium_functions(:get_text, "#{alert_xpath}/div[2]/div[1]/div[2]/span").tr("\n", ' ')
35
+ if error.include?('There are one or more circular references')
36
+ click_on_button("#{@alert_dialog_xpath}//button[@result='ok']")
37
+ return nil
38
+ end
35
39
  "Server Error: #{error}"
36
40
  end
37
41
 
@@ -4,6 +4,6 @@ module OnlyofficeDocumentserverTestingFramework
4
4
  # Module to hold version of Gem
5
5
  module Version
6
6
  # [String] version of gem
7
- STRING = '2.17.0'
7
+ STRING = '2.18.1'
8
8
  end
9
9
  end
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.17.0
4
+ version: 2.18.1
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: 2024-06-18 00:00:00.000000000 Z
12
+ date: 2024-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper
@@ -83,6 +83,8 @@ files:
83
83
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_3.list
84
84
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_7_4.list
85
85
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_0.list
86
+ - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_1.list
87
+ - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_2.list
86
88
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_before_6_2.list
87
89
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/password_protected_conversion_helper.rb
88
90
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/integration_example_api.rb
@@ -121,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
123
  - !ruby/object:Gem::Version
122
124
  version: '0'
123
125
  requirements: []
124
- rubygems_version: 3.5.13
126
+ rubygems_version: 3.5.23
125
127
  signing_key:
126
128
  specification_version: 4
127
129
  summary: ONLYOFFICE DocumentServer testing framework