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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fab2328c160c01a45acab3397c700f2554ee10297351574f2c2d159af3913f70
4
- data.tar.gz: 7fb5dcc801e6aa7b15fd6b90e2dee7684ab1645c2afbf60853f4e5b811c93a11
3
+ metadata.gz: fb63f18a3eec041fefe76e812fa820d7f81c484f02f06c296ac761e0caa61a9a
4
+ data.tar.gz: 467c6e4bf7781e94812a5d86d9f6730daeab106a9d8de91ebfa43e074964fe90
5
5
  SHA512:
6
- metadata.gz: fe1ca3e429f875cd75dcd3b4466cdbd999bc6709f13e74c3adebef2fb60f2d4d741f1c0ecb697758fed480c2879817a98dc29d88ab3f1cf7aca98345b3837621
7
- data.tar.gz: 6ca74a4be6b42fb92d94cf72d8c49b5e34a3dc6845aeb66e39528815d77e4dde49dab6c85aa0440b4d9f058a76bde459cf7c074188edd2e6f868b874503dc367
6
+ metadata.gz: 9b912745a36bdfc27309c3949de66a63eea69db2cbb7a7167a32981c14c4500c5e6c8d0e5ab4190fac3308cdd1fcc78f466da25e5b3b338a9a298dc38a3c7135
7
+ data.tar.gz: 20531f3a13eb0dd2bb1e5a4923109d07ddcb4a84ff3d1b69f984838e0d2556f3c3b3808120333d968fb2fba62b1531f7016deeee1b2be9215fcf144941d8fa09
@@ -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
@@ -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}/healthcheck")
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
- '/test_instance_docs/doc_test_site_functions/'\
239
- "#{file}")
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
- 'not(contains(@id, "fileFrame"))]'
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
- "#{current_wait_time} of "\
94
- "#{timeout_in_seconds} timeout")
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
 
@@ -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 = '0.5.1'
7
+ STRING = '0.6.2'
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: 0.5.1
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-05-12 00:00:00.000000000 Z
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.1.6
236
+ rubygems_version: 3.2.26
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: ONLYOFFICE DocumentServer testing framework