onlyoffice_documentserver_testing_framework 2.16.0 → 2.17.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: 6bf7d415e031f6817060ee6a9202ad373cd6ffc5119217ce32c66b83146021fa
4
- data.tar.gz: 236b54da21d8f0b069f8d0a5b86987f17dbd79863426dd045b4a678d09f31966
3
+ metadata.gz: 0bcde4ab727049948a6242bbb9bbb77a287bb43e5f8f445ba6abb3d55ba480a0
4
+ data.tar.gz: 193c88c0aeee333aa8c4419eb0345379e7715e66cb38a5369f33b92ba26110e4
5
5
  SHA512:
6
- metadata.gz: 22ebba3b0d811b98c0070d65f5bae685023d625cbd95ede2089080b9bb299c06ea8c1de2e7f01d86fa978bf85e2957f907c0b62fac50f0f9b1f040de6c68dc9a
7
- data.tar.gz: 1f2bf0eb3578982b52d3dfd63143c9341466d4d128f68179bbebd92c08543f9a7cc0ab7a9bb3de2661f5f03e70d19c7afe2c5e3f8c6507fc0a6ae254c725dcaa
6
+ metadata.gz: 27f6f645393b043c23a09975c0f4d8319b2bca3a332c06aad53bb91d76c005005a08903ae67cc1118adebdc276792808c78c23bd42535feac0786e40e6224675
7
+ data.tar.gz: 29b99c529db8a922807cf981b84e0b12be226a8b192d552924fdc955365cce81de5cac4f5cb2e6593751c9ac0b588723c4574c74f36bd663ef556f3c7d39bf38
@@ -47,10 +47,27 @@ module OnlyofficeDocumentserverTestingFramework
47
47
  # rubocop disable to not change interface of public method
48
48
  # rubocop:disable Style/OptionalBooleanParameter
49
49
  def open(to_open = true)
50
- return if to_open == active?
50
+ click if to_open != active?
51
+ close_tooltips
52
+ end
51
53
 
52
- click
54
+ # Close tooltips
55
+ # @return [Nothing]
56
+ def close_tooltips
57
+ click_on_button(close_tooltip_xpath) while visible?(tooltip_xpath)
53
58
  end
54
59
  # rubocop:enable Style/OptionalBooleanParameter
60
+
61
+ private
62
+
63
+ # @return [String] xpath to tooltip
64
+ def tooltip_xpath
65
+ "//div[contains(@class, 'synch-tip-root')]"
66
+ end
67
+
68
+ # @return [String] xpath to close button in tooltip
69
+ def close_tooltip_xpath
70
+ "#{tooltip_xpath}//div[@class = 'close']"
71
+ end
55
72
  end
56
73
  end
@@ -173,11 +173,10 @@ class DocTestSiteFunctions
173
173
 
174
174
  # @return [DocTestFileLIst] get file list
175
175
  def uploaded_file_list
176
- file_list = []
177
- (0...uploaded_file_count).each do |current_file_number|
178
- file_list << DocTestSiteFileListEntry.new(@instance,
179
- "#{@xpath_file_entry}[#{current_file_number + 1}]",
180
- @edit_modes_indexes)
176
+ file_list = (0...uploaded_file_count).map do |current_file_number|
177
+ DocTestSiteFileListEntry.new(@instance,
178
+ "#{@xpath_file_entry}[#{current_file_number + 1}]",
179
+ @edit_modes_indexes)
181
180
  end
182
181
  DocTestFileList.new(file_list)
183
182
  end
@@ -6,7 +6,7 @@ module OnlyofficeDocumentserverTestingFramework
6
6
  include SeleniumWrapper
7
7
 
8
8
  def initialize(instance)
9
- super(instance)
9
+ super
10
10
  @xpath_codepage_selector = '//*[contains(text(), "CSV")]/../..//div[@id="id-codepages-combo"]'
11
11
  end
12
12
 
@@ -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.16.0'
7
+ STRING = '2.17.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.16.0
4
+ version: 2.17.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: 2024-02-21 00:00:00.000000000 Z
12
+ date: 2024-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.5.6
124
+ rubygems_version: 3.5.13
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: ONLYOFFICE DocumentServer testing framework