diff --git a/features/step_definitions/checklist_test.rb b/features/step_definitions/checklist_test.rb index dbebb13f5..9e6042a81 100644 --- a/features/step_definitions/checklist_test.rb +++ b/features/step_definitions/checklist_test.rb @@ -131,6 +131,7 @@ def simplify_source_data_criteria(test) end def upload_and_submit(file_path) + find('span', class: 'btn-file').click page.attach_file('results', file_path, visible: false) page.find('#submit-upload').click end diff --git a/features/step_definitions/program_test.rb b/features/step_definitions/program_test.rb index f6502d918..54fdc564c 100644 --- a/features/step_definitions/program_test.rb +++ b/features/step_definitions/program_test.rb @@ -51,6 +51,7 @@ end def upload_and_submit(file_path) + find('span', class: 'btn-file').click page.attach_file('results', file_path, visible: false) page.find('#submit-upload').click end