20032: Fix unnecessary race in test.
[arvados.git] / apps / workbench / test / controllers / workflows_controller_test.rb
index 14db731381cd97ae09324d7300d74cd765ad5bef..0877e59328dbe6454460b7bbf09f5cd1d739b1d9 100644 (file)
@@ -1,9 +1,25 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class WorkflowsControllerTest < ActionController::TestCase
   test "index" do
-    get :index, {}, session_for(:active)
+    get :index, params: {}, session: session_for(:active)
     assert_response :success
     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, params: {id: wf['uuid']}, session: 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