Merge branch '12100-cwltool-update' closes #12100
[arvados.git] / apps / workbench / test / controllers / workflows_controller_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class WorkflowsControllerTest < ActionController::TestCase
8   test "index" do
9     get :index, {}, session_for(:active)
10     assert_response :success
11     assert_includes @response.body, 'Valid workflow with no definition yaml'
12   end
13
14   test "show" do
15     use_token 'active'
16
17     wf = api_fixture('workflows')['workflow_with_input_specifications']
18
19     get :show, {id: wf['uuid']}, session_for(:active)
20     assert_response :success
21
22     assert_includes @response.body, "a short label for this parameter (optional)"
23     assert_includes @response.body, "href=\"#Advanced\""
24   end
25 end