Skip to content

Commit 3027f94

Browse files
committed
Fix workflow upload specs after button redesign
1 parent 28bf159 commit 3027f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/features/workflow_import_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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.')
@@ -38,7 +38,7 @@
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')

0 commit comments

Comments
 (0)