onlyoffice_documentserver_testing_framework 2.10.0 → 2.11.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: 3d7a64abfcf73c447754f1baed6247d2f5795759bc7700fcf69b68efc5069131
4
- data.tar.gz: 3fd1c539aa055955dac2d2d4e88fff52aa707a501c68cfb9c5eabcdbf6c75a81
3
+ metadata.gz: 55a2459e9a085a04258ca443ebf12015c9172da446bc02f66b23412ff5c0f73d
4
+ data.tar.gz: afb457e1bbd206f22eac136925ae60db2ef15bb66f827fce604d21c5318f58a9
5
5
  SHA512:
6
- metadata.gz: 7cd8e4a4dd97bf991ab8af8ecedd87738f72542cac4d4920b82061f5faa1c2490210ab70a352a8b2a692544c5f03c52e48caa148eb0c7f0c6d1da673f9d527ef
7
- data.tar.gz: 41f906177e6c34952bfc4c20b6f146a26ffcd8df7f83953aec1069b955c280c86e54499c848635a785cc27b70fa147533cd0acb955b6dd341f9f292e5ee07993
6
+ metadata.gz: b75a9dbf49c2e1dbc50c534e8ae6dcabfa208f6b2f7997e226ecd361c7437c2afc534b1b4a30c675f3a2887139c515fa9f46218a5b4194260ac1b192239dabc4
7
+ data.tar.gz: cfe0e6f4783d8e5f3b141d680b5d626909a9129795016990d8a86e639afe73c49a46694bec278eb1cf70fc51312be7e13eeb18cd3c69d0a9aa5a94fc15a45e53
@@ -27,6 +27,15 @@ module OnlyofficeDocumentserverTestingFramework
27
27
  name[-1] == '*'
28
28
  end
29
29
 
30
+ # Rename current document
31
+ # @param [String] new_name to rename
32
+ # @return [nil]
33
+ def rename(new_name)
34
+ selenium_functions(:type_to_locator, @xpath_document_name, "#{new_name}\n", true, true)
35
+ OnlyofficeLoggerHelper.log("Renamed document to `#{new_name}` name")
36
+ OnlyofficeLoggerHelper.sleep_and_log('Wait for rename to complete', 5)
37
+ end
38
+
30
39
  private
31
40
 
32
41
  # @return [String] raw data from document name
@@ -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.10.0'
7
+ STRING = '2.11.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.10.0
4
+ version: 2.11.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: 2022-08-18 00:00:00.000000000 Z
12
+ date: 2022-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper