mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-24 16:26:59 +00:00
21 lines
878 B
Ruby
21 lines
878 B
Ruby
|
#
|
||
|
# This file is subject to the license terms in the LICENSE file found in the
|
||
|
# qa-browsertests top-level directory and at
|
||
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
|
||
|
# qa-browsertests, including this file, may be copied, modified, propagated, or
|
||
|
# distributed except according to the terms contained in the LICENSE file.
|
||
|
#
|
||
|
# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
|
||
|
# qa-browsertests top-level directory and at
|
||
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
|
||
|
#
|
||
|
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
|