Skip to content

Commit

Permalink
TEST: Search for items from a range of attribute values (see #573).
Browse files Browse the repository at this point in the history
Co-Authored-By: Florentin Farcy <florentin.farcy@utt.fr>
  • Loading branch information
ThibH2O and FloFAR committed Jun 9, 2022
1 parent 824d5b9 commit 27e7996
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/step_definitions/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@
find('input[type="search"]').send_keys topic
click_link(topic, href: nil)
end

Soit("{string} le paramètre appliqué à l'attribut {string}") do |setting attribute|
find('.AttributeList ' + attribute).to have_css("." + setting)
end
7 changes: 7 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,10 @@
end
end

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

0 comments on commit 27e7996

Please sign in to comment.