3 class JobsControllerTest < ActionController::TestCase
4 test "visit jobs index page" do
5 get :index, {}, session_for(:active)
6 assert_response :success
9 test "job page lists pipelines and jobs in which it is used" do
11 {id: api_fixture('jobs')['completed_job_in_publicly_accessible_project']['uuid']},
13 assert_response :success
15 assert_select "div.used-in-pipelines" do
16 assert_select "a[href=/pipeline_instances/zzzzz-d1hrv-n68vc490mloy4fi]"
19 assert_select "div.used-in-jobs" do
20 assert_select "a[href=/jobs/zzzzz-8i9sb-with2components]"