14988: Fixes assert_equal param ordering for proper error messages.
[arvados.git] / apps / workbench / test / integration / application_layout_test.rb
index 75f2e836be726c7dcb622898b62ece0a688ff1ea..b3f704cdd98feb3be31326b2cbaf6451c5aa7925 100644 (file)
@@ -142,10 +142,18 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
 
   [
     [false, false],
+    ['http://wb2.example.org//', false],
+    ['ftp://wb2.example.org', false],
+    ['wb2.example.org', false],
     ['http://wb2.example.org', true],
+    ['https://wb2.example.org', true],
+    ['http://wb2.example.org/', true],
+    ['https://wb2.example.org/', true],
   ].each do |wb2_url_config, wb2_menu_appear|
     test "workbench2_url=#{wb2_url_config} should#{wb2_menu_appear ? '' : ' not'} show WB2 menu" do
       Rails.configuration.workbench2_url = wb2_url_config
+      assert_equal wb2_menu_appear, ConfigValidators::validate_wb2_url_config()
+
       visit page_with_token('active')
       within('.navbar-fixed-top') do
         page.find("#notifications-menu").click