generators/pages/templates/example_page.rb in howitzer-1.0.1 vs generators/pages/templates/example_page.rb in howitzer-1.0.2
- old
+ new
@@ -1,15 +1,15 @@
require_relative 'example_menu'
class ExamplePage < WebPage
URL = '/'
- validates :url, pattern: /#{Regexp.escape(settings.app_host)}\/?/
+ validates :url, pattern: /\A(?:.*?:\/\/)?[^\/]*\/?\z/
add_field_locator :search_input, 'lst-ib'
add_button_locator :search_btn, 'btnK'
include ExampleMenu
def fill_keyword(data)
fill_in field_locator(:search_input), data
end
-end
\ No newline at end of file
+end