8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / test / controllers / jobs_controller_test.rb
1 require 'test_helper'
2
3 class JobsControllerTest < ActionController::TestCase
4   test "visit jobs index page" do
5     get :index, {}, session_for(:active)
6     assert_response :success
7   end
8
9   test "job page lists pipelines and jobs in which it is used" do
10     get(:show,
11         {id: api_fixture('jobs')['completed_job_in_publicly_accessible_project']['uuid']},
12         session_for(:active))
13     assert_response :success
14
15     assert_select "div.used-in-pipelines" do
16       assert_select "a[href=/pipeline_instances/zzzzz-d1hrv-n68vc490mloy4fi]"
17     end
18
19     assert_select "div.used-in-jobs" do
20       assert_select "a[href=/jobs/zzzzz-8i9sb-with2components]"
21     end
22   end
23 end