onlyoffice_documentserver_testing_framework 0.5.0 → 0.5.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: '022178399bd1d1d76f54e1ac969c4fc0772261bccf8164e3da2ea29e422fd78a'
4
- data.tar.gz: 665670021caaa01e5f4da3b7c4640d2c587bd3ec998cd577d84f65cbdd5c8d9f
3
+ metadata.gz: fab2328c160c01a45acab3397c700f2554ee10297351574f2c2d159af3913f70
4
+ data.tar.gz: 7fb5dcc801e6aa7b15fd6b90e2dee7684ab1645c2afbf60853f4e5b811c93a11
5
5
  SHA512:
6
- metadata.gz: 7ce4615d5561e6234d3e850b81b9733086f840929f6e5d42d000581a2aa001bfaf4ac4d38489085612991302329736b64540e087b04c1e2c662915ea36d0e6d8
7
- data.tar.gz: 9c951e1ce667286a8362f4133ffd60da06255766a2a6b9d724ef497a84ab2f5218a0076b06ac183165f9c5ce2fa2b19bdee090180fa229d24b975594bf78e968
6
+ metadata.gz: fe1ca3e429f875cd75dcd3b4466cdbd999bc6709f13e74c3adebef2fb60f2d4d741f1c0ecb697758fed480c2879817a98dc29d88ab3f1cf7aca98345b3837621
7
+ data.tar.gz: 6ca74a4be6b42fb92d94cf72d8c49b5e34a3dc6845aeb66e39528815d77e4dde49dab6c85aa0440b4d9f058a76bde459cf7c074188edd2e6f868b874503dc367
@@ -20,6 +20,8 @@ module OnlyofficeDocumentserverTestingFramework
20
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
+ @xpath_window_modal = "//div[contains(@class, 'asc-window modal')]"
24
+ @xpath_anonymous_user_name_input = '//div[@id="id-dlg-username-caption"]'
23
25
  end
24
26
 
25
27
  # @return [Boolean] check if loader present
@@ -38,7 +40,7 @@ module OnlyofficeDocumentserverTestingFramework
38
40
  loader5 = @instance.selenium.element_visible?('//*[@id="loading-mask"]')
39
41
  loader6 = @instance.selenium.element_visible?('//*[@class="modals-mask"]')
40
42
  loader7 = @instance.selenium.element_visible?('//*[@class="asc-loadmask"]')
41
- loader8 = @instance.selenium.element_visible?(@xpath_window_modal)
43
+ loader8 = loading_blocking_modal_dialog?
42
44
  mobile_loader = wait_for_mobile_loading if main_frame_mobile_element_visible?
43
45
  @instance.selenium.select_top_frame
44
46
  loading = loader1 || loader2 || loader3 ||
@@ -202,5 +204,13 @@ module OnlyofficeDocumentserverTestingFramework
202
204
  @instance.selenium.webdriver_error "Unknown editor type for url: #{url}"
203
205
  end
204
206
  end
207
+
208
+ # @return [True, False] is there is loading blocking modals dialog
209
+ def loading_blocking_modal_dialog?
210
+ return false unless @instance.selenium.element_visible?(@xpath_window_modal)
211
+ return false if @instance.selenium.element_visible?(@xpath_anonymous_user_name_input)
212
+
213
+ true
214
+ end
205
215
  end
206
216
  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 = '0.5.0'
7
+ STRING = '0.5.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: 0.5.0
4
+ version: 0.5.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: 2021-04-15 00:00:00.000000000 Z
12
+ date: 2021-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper