1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class JobsControllerTest < ActionController::TestCase
8 test "visit jobs index page" do
9 get :index, {}, session_for(:active)
10 assert_response :success
13 test "job page lists pipelines and jobs in which it is used" do
15 {id: api_fixture('jobs')['completed_job_in_publicly_accessible_project']['uuid']},
17 assert_response :success
19 assert_select "div.used-in-pipelines" do
20 assert_select "a[href=/pipeline_instances/zzzzz-d1hrv-n68vc490mloy4fi]"
23 assert_select "div.used-in-jobs" do
24 assert_select "a[href=/jobs/zzzzz-8i9sb-with2components]"