X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f824f854b26dbf5e6c1d10dc3eb4689349dd71fe..0eb72b526bf8bbb011551ecf019f604e17a534f1:/apps/workbench/test/controllers/workflows_controller_test.rb diff --git a/apps/workbench/test/controllers/workflows_controller_test.rb b/apps/workbench/test/controllers/workflows_controller_test.rb index 654f3175f7..d73809a266 100644 --- a/apps/workbench/test/controllers/workflows_controller_test.rb +++ b/apps/workbench/test/controllers/workflows_controller_test.rb @@ -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) 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