onlyoffice_documentserver_testing_framework 2.19.2 → 2.21.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c346503700ab991b558c5fb9fdd56a88884e13c104c7d577307a1dc0d92fd7a
4
- data.tar.gz: d4363f8fd07235bd1c6573ec1e46043ffb9f6fe8dca54e75a6b629343e7aa461
3
+ metadata.gz: 9fa1d76b39876830d6714743c55aa9349796885954ab6920a9280a84e719320e
4
+ data.tar.gz: 73e2bd4f63d6a8cc847726e81b4971f6511600f4ec1f969de3f75cab78222663
5
5
  SHA512:
6
- metadata.gz: 1dad12325496f3fe344ff4760651333ad7ab91b142655e4b6ec11354a07199a7321b29852b40e1bc4aadaf7edea7a04f2ee2326cd1808f5338e0a3b1db365e64
7
- data.tar.gz: 6a578678d5ba0b0b8b39411fb5ca0d36fd2348d8c029f65f51d4a28bdec70224a0b6879a013a6ec07e56e7b610c5e84a6031b2c0b09b44b5328cef14a9f97394
6
+ metadata.gz: 513d827af5ce0552bbd8c01317191da5d010b86654e736739263cd0d270137e2f25d0805ac1b696645ef217332888fe9f0ac20f06b3be3b61e48acd604695f06
7
+ data.tar.gz: 3aa765988b5c6eaf8bb3bec7ee7df07e3e04f5174a808b4bb561926c96e550e633c4f86479ae9cd30653c4e216123af2e7ef3cec1be322d60847123b4633cf02
@@ -31,3 +31,5 @@ UserControls/Management
31
31
  clientscript/
32
32
  was loaded over an insecure connection. This file should be served over HTTPS.
33
33
  https://www.googletagmanager.com/
34
+ wasm streaming compile failed
35
+ falling back to ArrayBuffer instantiation
@@ -45,6 +45,8 @@ class DocTestSiteFileListEntry
45
45
 
46
46
  # @return [String] url on review mode
47
47
  def fetch_review_mode_url
48
+ return nil if editors_modes_empty?
49
+
48
50
  xpath_review = "#{@xpath_line}/td[#{@edit_modes_indexes[:review_mode]}]/a"
49
51
  return nil unless @instance.selenium.element_present?(xpath_review)
50
52
 
@@ -55,6 +57,8 @@ class DocTestSiteFileListEntry
55
57
 
56
58
  # @return [String] url on review mode
57
59
  def fetch_comment_mode_url
60
+ return nil if editors_modes_empty?
61
+
58
62
  xpath_comment = "#{@xpath_line}/td[#{@edit_modes_indexes[:comment_mode]}]/a"
59
63
  return nil unless @instance.selenium.element_present?(xpath_comment)
60
64
 
@@ -65,6 +69,8 @@ class DocTestSiteFileListEntry
65
69
 
66
70
  # @return [String] url on fill forms mode
67
71
  def fetch_fill_forms_mode_url
72
+ return nil if editors_modes_empty?
73
+
68
74
  xpath_comment = "#{@xpath_line}/td[#{@edit_modes_indexes[:fill_forms]}]/a"
69
75
  return nil unless @instance.selenium.element_present?(xpath_comment)
70
76
 
@@ -75,6 +81,8 @@ class DocTestSiteFileListEntry
75
81
 
76
82
  # @return [String] url on fill forms mode
77
83
  def fetch_only_fill_forms_mode_url
84
+ return nil if editors_modes_empty?
85
+
78
86
  link_xpath = "#{@xpath_line}/td[#{@edit_modes_indexes[:only_fill_forms]}]/a"
79
87
  return nil unless @instance.selenium.element_present?(link_xpath)
80
88
 
@@ -102,4 +110,11 @@ class DocTestSiteFileListEntry
102
110
  OnlyofficeLoggerHelper.log("Got embedded #{@xpath_line} url: #{url}")
103
111
  url
104
112
  end
113
+
114
+ # @return [True, False] if editors modes are empty
115
+ def editors_modes_empty?
116
+ empty = @instance.selenium.get_attribute("#{@xpath_line}/td[2]", 'class').include?('contentCellsEmpty')
117
+ OnlyofficeLoggerHelper.log("Editors modes empty?: #{empty}")
118
+ empty
119
+ end
105
120
  end
@@ -0,0 +1,46 @@
1
+ English
2
+ Albanian (Albania)
3
+ Arabic
4
+ Armenian
5
+ Azerbaijani
6
+ Basque
7
+ Belarusian
8
+ Bulgarian
9
+ Catalan
10
+ Chinese (Simplified)
11
+ Chinese (Traditional)
12
+ Czech
13
+ Danish
14
+ Dutch
15
+ English (United Kingdom)
16
+ Finnish
17
+ French
18
+ Galego
19
+ German
20
+ Greek
21
+ Hebrew (Israel)
22
+ Hungarian
23
+ Indonesian
24
+ Italian
25
+ Japanese
26
+ Korean
27
+ Lao
28
+ Latvian
29
+ Malay (Malaysia)
30
+ Norwegian
31
+ Polish
32
+ Portuguese (Brazil)
33
+ Portuguese (Portugal)
34
+ Romanian
35
+ Russian
36
+ Serbian (Cyrillic)
37
+ Serbian (Latin)
38
+ Sinhala (Sri Lanka)
39
+ Slovak
40
+ Slovenian
41
+ Spanish
42
+ Swedish
43
+ Turkish
44
+ Ukrainian
45
+ Vietnamese
46
+ Test Language
@@ -107,12 +107,20 @@ class DocTestSiteFunctions
107
107
  @instance.selenium.webdriver_error('File not finished for conversion for 100 seconds')
108
108
  end
109
109
 
110
+ # Checks if Loading editor scripts step of file upload is present
111
+ # @return [Nothing]
112
+ def final_loading_step_xpath
113
+ return @xpath_editor_scripts_step if @instance.selenium.element_visible?(@xpath_editor_scripts_step)
114
+
115
+ @xpath_conversion_step
116
+ end
117
+
110
118
  # Waits until scripts loads
111
119
  # @return [Nothing]
112
120
  def wait_loading_scripts
113
121
  100.times do |current_time|
114
122
  OnlyofficeLoggerHelper.log("Waiting for editors scripts load for #{current_time} seconds")
115
- return true if @instance.selenium.get_attribute(@xpath_editor_scripts_step, 'class').include?('done')
123
+ return true if @instance.selenium.get_attribute(final_loading_step_xpath, 'class').include?('done')
116
124
 
117
125
  sleep 1
118
126
  check_error
@@ -229,9 +237,10 @@ class DocTestSiteFunctions
229
237
 
230
238
  # @param [DocumentServerVersion] version of server
231
239
  # @return [Array<String>] list of supported languages
232
- def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 2, 0))
240
+ def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 3, 0))
233
241
  version_class = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion
234
242
  version_mappings = [
243
+ [version_class.new(8, 2), 'doc_test_site_languages_after_8_3.list'],
235
244
  [version_class.new(8, 2), 'doc_test_site_languages_after_8_2.list'],
236
245
  [version_class.new(8, 1), 'doc_test_site_languages_after_8_1.list'],
237
246
  [version_class.new(8, 0), 'doc_test_site_languages_after_8_0.list'],
@@ -263,9 +272,9 @@ class DocTestSiteFunctions
263
272
  # @return [Hash] name with index
264
273
  def default_modes_indexes
265
274
  {
266
- comment_mode: 2,
267
- review_mode: 4,
268
- fill_forms: 6,
275
+ comment_mode: 4,
276
+ review_mode: 5,
277
+ fill_forms: 7,
269
278
  view_mode: 8,
270
279
  embedded: 10
271
280
  }
@@ -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.19.2'
7
+ STRING = '2.21.0'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_documentserver_testing_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.2
4
+ version: 2.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
8
8
  - Pavel Lobashov
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-28 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: onlyoffice_logger_helper
@@ -84,6 +84,7 @@ files:
84
84
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_0.list
85
85
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_1.list
86
86
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_2.list
87
+ - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_3.list
87
88
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_before_6_2.list
88
89
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/password_protected_conversion_helper.rb
89
90
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/integration_example_api.rb
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  - !ruby/object:Gem::Version
122
123
  version: '0'
123
124
  requirements: []
124
- rubygems_version: 3.6.3
125
+ rubygems_version: 3.6.9
125
126
  specification_version: 4
126
127
  summary: ONLYOFFICE DocumentServer testing framework
127
128
  test_files: []