haya_select_helpers 0.0.15 → 0.0.16
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 +4 -4
- data/lib/haya_select.rb +1 -26
- data/lib/haya_select_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22a3e92315d622d5126b2436844dd9ff939cfbd48ec7e0f94ab9d89a6c648bf2
|
|
4
|
+
data.tar.gz: 2dca095a526496a669aec3d9e273a83e3c9c9fc8406da505623d5976e6597668
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5bf89ea12bc89ebcd04ba0b7470a50b67c56776d8ee0607b83a60ddd521ac77986210c4a901e752b077213bd3c808560ccce47844694a44926c530458fb211f
|
|
7
|
+
data.tar.gz: 5bd585c4f5c6d605b4c04d816c14b21f884dafbc6efce1b605eaaa4243a9a7ab38519b0d53a3791066f832c1b3779cff9fbba4cdcdd354a140c1c631373e0b12
|
data/lib/haya_select.rb
CHANGED
|
@@ -500,33 +500,8 @@ private
|
|
|
500
500
|
|
|
501
501
|
def perform_option_selection(option, label, option_value)
|
|
502
502
|
click_option_element(option)
|
|
503
|
-
return if selected?(label, option_value)
|
|
504
503
|
|
|
505
|
-
|
|
506
|
-
(label && label_matches?(label))
|
|
507
|
-
return
|
|
508
|
-
end
|
|
509
|
-
|
|
510
|
-
option_text = option.first("[data-testid='option-presentation-text']", minimum: 0)
|
|
511
|
-
click_option_element(option_text) if option_text
|
|
512
|
-
return if selected?(label, option_value)
|
|
513
|
-
|
|
514
|
-
click_option_presentation(option, label, option_value)
|
|
515
|
-
send_option_keys(option, label, option_value)
|
|
516
|
-
click_option_element(option) unless selected?(label, option_value)
|
|
517
|
-
end
|
|
518
|
-
|
|
519
|
-
def click_option_presentation(option, label, option_value)
|
|
520
|
-
return if selected?(label, option_value)
|
|
521
|
-
|
|
522
|
-
option_presentation = option.all("[data-testid='option-presentation']", minimum: 0).first
|
|
523
|
-
click_option_element(option_presentation) if option_presentation
|
|
524
|
-
end
|
|
525
|
-
|
|
526
|
-
def send_option_keys(option, label, option_value)
|
|
527
|
-
return if selected?(label, option_value)
|
|
528
|
-
|
|
529
|
-
option.click
|
|
504
|
+
raise "Expected option to be selected after clicking it" unless selected?(label, option_value)
|
|
530
505
|
end
|
|
531
506
|
|
|
532
507
|
def select_option_container_selector
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haya_select_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kaspernj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|