effective_test_bot 1.5.6 → 1.5.7

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: 973740fc8ffcd01506d1f25adfd33ea5b6243bf0cf10ac92c2e113e99545db75
4
- data.tar.gz: f0432c566e900a84b03363a9f71c23e6da82a80ab096ba85b1959cc589c0c1fd
3
+ metadata.gz: 3f86b5ccc8292ae859595990c098b6ef9b0e68151ac13d9c1bc27d28288ef28c
4
+ data.tar.gz: 2b9a9054448b9298c23bc204145d3b6f0ac1b8d975f0f342f46b1d4e36b76770
5
5
  SHA512:
6
- metadata.gz: 22dcfa39126fb8e039ae905eb274f89181fea57adc283774366dfc8cc53a7cd93e24289fb4f0709045b1f79408652463cd68da1a3b8ec2b44be28353e3499c36
7
- data.tar.gz: 6eb4f7a4c8b0199e4821a3279b30fdcfc723cc0c3d58b9fc48e1ecbafdee9b6a62bfa0a9f68d98d6d2835df898793bc20402c44e45d40c71ef06bf62e08d5288
6
+ metadata.gz: 7e019e7a80ee2febd569b9087f5f49f33353afb39ae3ace0697c33af7c0381bd7394b522de3217c2f06ba6fb69181d11ad6144bb8a9f2ce78376d892164bf901
7
+ data.tar.gz: 429cdc8e54934ca69327b82655c44239c45f2df094d13f68fbd3e5cdebc9da9819f66518cccfacc5c7f873e0b4992f2c8a42549a05c8bf249bf9bbae524459f4
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.5.6'.freeze
2
+ VERSION = '1.5.7'.freeze
3
3
  end
@@ -94,6 +94,14 @@ module EffectiveTestBotTestHelper
94
94
  click_link(label, match: :first)
95
95
  end
96
96
 
97
+ def click_dropdown_link(label)
98
+ dropdown = first(".btn.dropdown-toggle")
99
+ raise("Unable to find a .btn.dropdown-toggle") unless dropdown.present?
100
+
101
+ dropdown.click
102
+ within_first("div.dropdown-menu") { submit_form(label) }
103
+ end
104
+
97
105
  def effective_bootstrap_custom_data_confirm?
98
106
  (page.evaluate_script('$.rails.effective_bootstrap_custom_data_confirm') rescue nil) ||
99
107
  (page.evaluate_script('window.Rails.effective_bootstrap_custom_data_confirm') rescue nil)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_test_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-07 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails