Merge branch 'master' into 6587-workbench-webshell-login-documentation
[arvados.git] / apps / workbench / test / integration / application_layout_test.rb
index daf2b09bbb1717b50bd472a54cda8e13a0e63db1..1f9edd422babfbf2906821fd4e0f1fa4cf805552 100644 (file)
@@ -201,4 +201,12 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
       assert page.has_link?('Report a problem ...'), 'No link - Report a problem'
     end
   end
+
+  test "no SSH public key notification when shell_in_a_box_url is configured" do
+    Rails.configuration.shell_in_a_box_url = 'example.com'
+    visit page_with_token('job_reader')
+    click_link 'notifications-menu'
+    assert_no_selector 'a', text:'Click here to set up an SSH public key for use with Arvados.'
+    assert_selector 'a', text:'Click here to learn how to run an Arvados Crunch pipeline'
+  end
 end