We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9be679 commit 3058ddbCopy full SHA for 3058ddb
2 files changed
lib/ae_page_objects/node.rb
@@ -54,8 +54,6 @@ def current_url_without_params
54
class_eval <<-RUBY
55
def #{m}(*args, &block)
56
node.send(:#{m}, *args, &block)
57
- rescue Capybara::ElementNotFound => e
58
- raise LoadingElementFailed, e.message
59
end
60
RUBY
61
test/test_helpers/node_interface_tests.rb
@@ -10,7 +10,7 @@ def test_node_method_wraps_not_found
10
error = Capybara::ElementNotFound.new("The message")
11
capybara_stub.session.expects(method).with(:args).raises(error)
12
13
- raised = assert_raises AePageObjects::LoadingElementFailed do
+ raised = assert_raises error do
14
subject.send(method, :args)
15
16
0 commit comments