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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab2328c160c01a45acab3397c700f2554ee10297351574f2c2d159af3913f70
|
4
|
+
data.tar.gz: 7fb5dcc801e6aa7b15fd6b90e2dee7684ab1645c2afbf60853f4e5b811c93a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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.
|
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-
|
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
|