]> git.openstreetmap.org Git - rails.git/blobdiff - test/application_system_test_case.rb
Add changeset comment search api with filtering by author and time
[rails.git] / test / application_system_test_case.rb
index d2c3d5196ab9b5ccbcae32aaaed086e03650d7f5..496f37c16be4be820d16dfb753ab1bed77c8cd2a 100644 (file)
@@ -9,6 +9,7 @@ end
 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
   driven_by :selenium, :using => :headless_firefox do |options|
     options.add_preference("intl.accept_languages", "en")
 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
   driven_by :selenium, :using => :headless_firefox do |options|
     options.add_preference("intl.accept_languages", "en")
+    options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
   end
 
   def before_setup
   end
 
   def before_setup
@@ -41,4 +42,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
   def within_sidebar(&)
     within("#sidebar_content", &)
   end
   def within_sidebar(&)
     within("#sidebar_content", &)
   end
+
+  def within_content_body(&)
+    within("#content > .content-body", &)
+  end
 end
 end