X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb diff --git a/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb b/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb new file mode 100644 index 00000000..ce793b32 --- /dev/null +++ b/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb @@ -0,0 +1,9 @@ +Then(/^Download as PDF should be present$/) do + on(PdfPage).download_as_pdf_element.should exist +end +When(/^I click on Download as PDF$/) do + on(PdfPage).download_as_pdf_element.when_present.click +end +Then(/^Download the file link should be present$/) do + on(PdfPage).download_the_file_element.when_present(30).should exist +end