Merge branch 'master' into 11060-all-visible-repos
[arvados.git] / apps / workbench / test / controllers / workflows_controller_test.rb
index 654f3175f7c9a54283ed3049d344b0cf4c0f64aa..cb298f487372be1fc6abaf6ece87e991d80385ba 100644 (file)
@@ -4,6 +4,18 @@ class WorkflowsControllerTest < ActionController::TestCase
   test "index" do
     get :index, {}, session_for(:active)
     assert_response :success
-    assert_includes @response.body, 'Valid workflow with no workflow yaml'
+    assert_includes @response.body, 'Valid workflow with no definition yaml'
+  end
+
+  test "show" do
+    use_token 'active'
+
+    wf = api_fixture('workflows')['workflow_with_input_specifications']
+
+    get :show, {id: wf['uuid']}, session_for(:active)
+    assert_response :success
+
+    assert_includes @response.body, "a short label for this parameter (optional)"
+    assert_includes @response.body, "href=\"#Advanced\""
   end
 end