1 require 'integration_helper'
3 class JobsTest < ActionDispatch::IntegrationTest
4 test "add job description" do
5 Capybara.current_driver = Capybara.javascript_driver
6 visit page_with_token("active", "/jobs")
8 # go to job running the script "doesnotexist"
9 within first('tr', text: 'doesnotexist') do
13 # edit job description
14 within('.arv-description-as-subtitle') do
15 find('.fa-pencil').click
16 find('.editable-input textarea').set('*Textile description for job* - "Go to dashboard":/')
17 find('.editable-submit').click
21 # Verify edited description
22 assert page.has_no_text? '*Textile description for job*'
23 assert page.has_text? 'Textile description for job'
24 assert page.has_link? 'Go to dashboard'
25 click_link 'Go to dashboard'
26 assert page.has_text? 'Active pipelines'