capybara-harness 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,7 @@ module Capybara::Harness::Dom
|
|
42
42
|
# Public: Finds and clicks the element's link that is assigned the data attribute for the supplied action. Common actions
|
43
43
|
# include :edit or :delete.
|
44
44
|
def click_action(action)
|
45
|
-
dom_reader.find_element.find("[data-action='#{action}']").click
|
45
|
+
dom_reader.find_element(self.values).find("[data-action='#{action}']").click
|
46
46
|
end
|
47
47
|
|
48
48
|
def reset!(new_values = {})
|