File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121
2222 it 'imports a workflow that does not exist yet' do
2323 visit new_workflow_imports_path
24- attach_file ( 'Upload a workflow JSON File' , workflow_file )
24+ find ( :css , '#workflow_import_file' ) . attach_file ( workflow_file )
2525 click_on 'Start Import'
2626 expect ( page ) . to have_text ( 'This workflow has a few agents to get you started.' )
2727 expect ( page ) . not_to have_text ( 'This workflow already exists in your system.' )
3838 agent . options [ 'expected_receive_period_in_days' ] = 9001
3939 agent . save!
4040 visit new_workflow_imports_path
41- attach_file ( 'Upload a workflow JSON File' , workflow_file )
41+ find ( :css , '#workflow_import_file' ) . attach_file ( workflow_file )
4242 click_on 'Start Import'
4343 expect ( page ) . to have_text ( 'This workflow already exists in your system.' )
4444 expect ( page ) . to have_text ( '9001' )
You can’t perform that action at this time.
0 commit comments