lib/agilibox/cucumber_helpers/common_steps.rb in agilibox-1.5.3 vs lib/agilibox/cucumber_helpers/common_steps.rb in agilibox-1.5.4

- old
+ new

@@ -1,18 +1,18 @@ # Clicks / Keyboard When("I click on {string}") do |text| - find("a, button, label", text: text).click + find(:agilibox_clickable, text).click end When("I click on first {string}") do |text| expect(page).to have_content(text) - all("a, button, input[type=button], label", text: text).first.click + all(:agilibox_clickable, text).first.click end When("I click on last {string}") do |text| expect(page).to have_content(text) - all("a, button, input[type=button], label", text: text).last.click + all(:agilibox_clickable, text).last.click end When("I click on {string} element") do |selector| find(selector).click end