This repository was archived by the owner on Mar 3, 2020. It is now read-only.
File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,17 @@ def has_internet?
52
52
# Accessing unattached nodes is allowed when reload is disabled - Legacy behavior
53
53
# Node#send_keys does not support modifiers and only supports a subset of special keys
54
54
c . filter_run_excluding :full_description => lambda { |description , metadata |
55
- ( description =~ /Capybara::Session webkit node #reload without automatic reload should not automatically reload/ ||
56
- if Gem ::Version . new ( Capybara ::VERSION ) < Gem ::Version . new ( "2.12.0" )
57
- description =~ /Capybara::Session webkit Capybara::Window\s *#(size|resize_to|maximize|close.*no_such_window_error)/ ||
58
- description =~ /Capybara::Session webkit node\s *#set should allow me to change the contents of a contenteditable elements child/
59
- else
60
- description =~ /Capybara::Session webkit Capybara::Window\s *#close.*no_such_window_error/
61
- end
62
- )
55
+ patterns = [
56
+ /Capybara::Session webkit node #reload without automatic reload should not automatically reload/ ,
57
+ /Capybara::Session webkit #select input with datalist should select an option/ ,
58
+ /Capybara::Session webkit Capybara::Window\s *#close.*no_such_window_error/
59
+ ]
60
+ # These tests were implemented in a non-compatible manner in Capybara < 2.12.0
61
+ if Gem ::Version . new ( Capybara ::VERSION ) < Gem ::Version . new ( "2.12.0" )
62
+ patterns << /Capybara::Session webkit Capybara::Window\s *#(size|resize_to|maximize)/ <<
63
+ /Capybara::Session webkit node\s *#set should allow me to change the contents of a contenteditable elements child/
64
+ end
65
+ patterns . any? { |pattern | description =~ pattern }
63
66
}
64
67
65
68
c . filter_run :focus unless ENV [ "TRAVIS" ]
You can’t perform that action at this time.
0 commit comments