onlyoffice_documentserver_testing_framework 2.14.0 → 2.16.0

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: 461ac114a5d0cd1a595cd929458fc802644f6fe9c1d4a058a18e246f6ed915a3
4
- data.tar.gz: 4426ce9593888e5186269b277acd216f6ab7ab4d7b83431eace8f1471a279e1a
3
+ metadata.gz: 6bf7d415e031f6817060ee6a9202ad373cd6ffc5119217ce32c66b83146021fa
4
+ data.tar.gz: 236b54da21d8f0b069f8d0a5b86987f17dbd79863426dd045b4a678d09f31966
5
5
  SHA512:
6
- metadata.gz: 5f4257687f15794b8acac255bea478c8092b38eac1f7b6518a588a55ef3db70779cdd7accb3b5370112ec3dd9427f194f09ad2c409d86029b61fedb50274e33b
7
- data.tar.gz: 3d00850bacb8199b773feed6a12a6b45117693fd511da23eb2287e68ebd711f6f40ab82a5a4f60b3944285745baa219c8b922104218b9efcf5c5fde378ebd8c6
6
+ metadata.gz: 22ebba3b0d811b98c0070d65f5bae685023d625cbd95ede2089080b9bb299c06ea8c1de2e7f01d86fa978bf85e2957f907c0b62fac50f0f9b1f040de6c68dc9a
7
+ data.tar.gz: 1f2bf0eb3578982b52d3dfd63143c9341466d4d128f68179bbebd92c08543f9a7cc0ab7a9bb3de2661f5f03e70d19c7afe2c5e3f8c6507fc0a6ae254c725dcaa
@@ -29,3 +29,4 @@ ResponsiveVoice missing API key
29
29
  /libfont/wasm/
30
30
  UserControls/Management
31
31
  clientscript/
32
+ was loaded over an insecure connection. This file should be served over HTTPS.
@@ -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
@@ -0,0 +1,42 @@
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
+ Finnish
15
+ French
16
+ Galego
17
+ German
18
+ Greek
19
+ Hungarian
20
+ Indonesian
21
+ Italian
22
+ Japanese
23
+ Korean
24
+ Lao
25
+ Latvian
26
+ Malay (Malaysia)
27
+ Norwegian
28
+ Polish
29
+ Portuguese (Brazil)
30
+ Portuguese (Portugal)
31
+ Romanian
32
+ Russian
33
+ Serbian
34
+ Sinhala (Sri Lanka)
35
+ Slovak
36
+ Slovenian
37
+ Spanish
38
+ Swedish
39
+ Turkish
40
+ Ukrainian
41
+ Vietnamese
42
+ Test Language
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OnlyofficeDocumentserverTestingFramework
4
+ # Helper to handle password protected files on conversion step
5
+ module PasswordProtectedConversionHelper
6
+ # @return [String] xpath of password input
7
+ def xpath_input_password
8
+ '//input[@id="filePass"]'
9
+ end
10
+
11
+ # @return [String] xpath of enter button
12
+ def xpath_enter_password
13
+ '//div[@id="enterPass"]'
14
+ end
15
+
16
+ # @return [String] xpath of error message
17
+ def xpath_password_error
18
+ '//span[@class="errorPass"]'
19
+ end
20
+
21
+ # Waits until password is checked
22
+ # @return [Nothing]
23
+ def wait_to_check_password
24
+ @instance.webdriver.wait_until(5) do
25
+ !@instance.webdriver.get_attribute(@xpath_conversion_step, 'class').include?('current')
26
+ end
27
+ end
28
+
29
+ # @return [Boolean] check if incorrect password warning is shown
30
+ def incorrect_password_shown?
31
+ @instance.selenium.element_visible?(xpath_password_error)
32
+ end
33
+
34
+ # Handle password block
35
+ def handle_password_protection(password)
36
+ @instance.selenium.type_text(xpath_input_password, password)
37
+ @instance.selenium.click_on_locator(xpath_enter_password)
38
+ wait_to_check_password
39
+ @instance.webdriver.webdriver_error("Cannot open file with password: `#{password}`") if incorrect_password_shown?
40
+ OnlyofficeLoggerHelper.log('Entered password')
41
+ end
42
+ end
43
+ end
@@ -4,11 +4,13 @@ require_relative 'doc_test_site_functions/healthcheck_page'
4
4
  require_relative 'doc_test_site_functions/doc_test_file_list'
5
5
  require_relative 'doc_test_site_functions/doc_test_site_server_helper'
6
6
  require_relative 'doc_test_site_functions/file_reopen_helper'
7
+ require_relative 'doc_test_site_functions/password_protected_conversion_helper'
7
8
  # Class to work with test examples
8
9
  class DocTestSiteFunctions
9
10
  extend DocTestSiteServerHelper
10
11
  include PageObject
11
12
  include OnlyofficeDocumentserverTestingFramework::FileReopenHelper
13
+ include OnlyofficeDocumentserverTestingFramework::PasswordProtectedConversionHelper
12
14
 
13
15
  select_list(:user_list, xpath: '//*[@id="user"]')
14
16
  select_list(:language_list, xpath: '//*[@id="language"]')
@@ -96,6 +98,9 @@ class DocTestSiteFunctions
96
98
  OnlyofficeLoggerHelper.log("Waiting for file conversion for #{current_time} seconds")
97
99
  return true if @instance.selenium.get_attribute(@xpath_conversion_step, 'class').include?('done')
98
100
 
101
+ if @instance.selenium.element_visible?(xpath_input_password)
102
+ handle_password_protection(@instance.management.password)
103
+ end
99
104
  sleep 1
100
105
  check_error
101
106
  end
@@ -225,8 +230,12 @@ class DocTestSiteFunctions
225
230
 
226
231
  # @param [DocumentServerVersion] version of server
227
232
  # @return [Array<String>] list of supported languages
228
- def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 3, 0))
229
- file = if version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 3)
233
+ def self.supported_languages(version = OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 0, 0))
234
+ file = if version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(8, 0)
235
+ 'doc_test_site_languages_after_8_0.list'
236
+ elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 4)
237
+ 'doc_test_site_languages_after_7_4.list'
238
+ elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 3)
230
239
  'doc_test_site_languages_after_7_3.list'
231
240
  elsif version >= OnlyofficeDocumentserverTestingFramework::DocumentServerVersion.new(7, 2)
232
241
  'doc_test_site_languages_after_7_2.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
- @instance.selenium.type_text(xpath_input_password, password)
30
- @instance.selenium.click_on_locator(xpath_ok_password)
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
@@ -20,12 +20,12 @@ module OnlyofficeDocumentserverTestingFramework
20
20
 
21
21
  # Handle update links dialog
22
22
  def handle_update_links_message(to_update)
23
- return unless @instance.selenium.element_visible?(update_links_message_xpath)
23
+ return unless selenium_functions(:element_visible?, update_links_message_xpath)
24
24
 
25
25
  if to_update
26
- @instance.selenium.click_on_locator(xpath_update_button)
26
+ selenium_functions(:click_on_locator, xpath_update_button, true)
27
27
  else
28
- @instance.selenium.click_on_locator(xpath_do_not_update_button)
28
+ selenium_functions(:click_on_locator, xpath_do_not_update_button, true)
29
29
  end
30
30
  end
31
31
  end
@@ -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.14.0'
7
+ STRING = '2.16.0'
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.14.0
4
+ version: 2.16.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: 2023-03-01 00:00:00.000000000 Z
12
+ date: 2024-02-21 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
@@ -213,7 +81,10 @@ files:
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
215
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
85
+ - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_after_8_0.list
216
86
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/languages_list/doc_test_site_languages_before_6_2.list
87
+ - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/password_protected_conversion_helper.rb
217
88
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/integration_example_api.rb
218
89
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management.rb
219
90
  - lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/loader_helper.rb
@@ -243,14 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
243
114
  requirements:
244
115
  - - ">="
245
116
  - !ruby/object:Gem::Version
246
- version: '2.7'
117
+ version: '3.0'
247
118
  required_rubygems_version: !ruby/object:Gem::Requirement
248
119
  requirements:
249
120
  - - ">="
250
121
  - !ruby/object:Gem::Version
251
122
  version: '0'
252
123
  requirements: []
253
- rubygems_version: 3.4.7
124
+ rubygems_version: 3.5.6
254
125
  signing_key:
255
126
  specification_version: 4
256
127
  summary: ONLYOFFICE DocumentServer testing framework