X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8d2aebfd3a0e4814b292659710386f949cafe092..0e12d049716003b08c4fc881343ebf14c3522b99:/apps/workbench/test/controllers/jobs_controller_test.rb diff --git a/apps/workbench/test/controllers/jobs_controller_test.rb b/apps/workbench/test/controllers/jobs_controller_test.rb index 1e2643526d..f854eaa77f 100644 --- a/apps/workbench/test/controllers/jobs_controller_test.rb +++ b/apps/workbench/test/controllers/jobs_controller_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class JobsControllerTest < ActionController::TestCase @@ -5,4 +9,19 @@ class JobsControllerTest < ActionController::TestCase get :index, {}, session_for(:active) assert_response :success end + + test "job page lists pipelines and jobs in which it is used" do + get(:show, + {id: api_fixture('jobs')['completed_job_in_publicly_accessible_project']['uuid']}, + session_for(:active)) + assert_response :success + + assert_select "div.used-in-pipelines" do + assert_select "a[href=/pipeline_instances/zzzzz-d1hrv-n68vc490mloy4fi]" + end + + assert_select "div.used-in-jobs" do + assert_select "a[href=/jobs/zzzzz-8i9sb-with2components]" + end + end end