Skip to content

Commit 3cc36fb

Browse files
ThibH2OFloFAR
andcommitted
TEST: Search for items from a range of attribute values (see Hypertopic#573).
Co-Authored-By: Florentin Farcy <[email protected]>
1 parent 824d5b9 commit 3cc36fb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

features/step_definitions/context.rb

+4
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,7 @@
9393
find('input[type="search"]').send_keys topic
9494
click_link(topic, href: nil)
9595
end
96+
97+
Soit("{string} le paramètre appliqué à l'attribut {string}") do |setting, attribute|
98+
find('.AttributeList ' + attribute).to have_css("." + setting)
99+
end

features/step_definitions/event.rb

+7
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,10 @@
123123
end
124124
end
125125

126+
Quand("l'utilisateur sélectionne un intervalle entre {int} et {int} pour l'attribut {string}") do |min, max, attribute|
127+
within '.' + attribute do
128+
find_all('input[type="range"]')[0].set(min)
129+
find_all('input[type="range"]')[1].set(max)
130+
end
131+
end
132+

0 commit comments

Comments
 (0)