Skip to content

Commit

Permalink
clink the span element in cucumber test
Browse files Browse the repository at this point in the history
  • Loading branch information
dczulada committed Sep 24, 2024
1 parent 5a81c93 commit 30ddf53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/step_definitions/checklist_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions features/step_definitions/program_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30ddf53

Please sign in to comment.