Zfilipin has submitted this change and it was merged.

Change subject: Feature: PDF, Scenario: Check for Download as PDF ink
......................................................................


Feature: PDF, Scenario: Check for Download as PDF ink

Bug: 46224
Change-Id: I195a590844ebd1eee779cd2f3486c9e63035110d
---
A features/pdf.feature
A features/step_definitions/pdf_steps.rb
M features/support/pages/random_page.rb
3 files changed, 9 insertions(+), 0 deletions(-)

Approvals:
  Zfilipin: Verified; Looks good to me, approved



diff --git a/features/pdf.feature b/features/pdf.feature
new file mode 100644
index 0000000..1886b92
--- /dev/null
+++ b/features/pdf.feature
@@ -0,0 +1,5 @@
+Feature: PDF
+
+  Scenario: Check for Download as PDF ink
+    Given I am at random page
+    Then Download as PDF should be present
diff --git a/features/step_definitions/pdf_steps.rb 
b/features/step_definitions/pdf_steps.rb
new file mode 100644
index 0000000..4e05f1d
--- /dev/null
+++ b/features/step_definitions/pdf_steps.rb
@@ -0,0 +1,3 @@
+Then(/^Download as PDF should be present$/) do
+  on(RandomPage).download_as_pdf_element.should exist
+end
diff --git a/features/support/pages/random_page.rb 
b/features/support/pages/random_page.rb
index 922c912..ea3640e 100644
--- a/features/support/pages/random_page.rb
+++ b/features/support/pages/random_page.rb
@@ -12,6 +12,7 @@
   page_url url
 
   li(:main_page, id: 'n-mainpage-description')
+  a(:download_as_pdf, text: 'Download as PDF')
   a(:uls_trigger, class: 'uls-trigger')
   div(:search, id: 'search')
   text_field(:search_input, id: 'searchInput')

-- 
To view, visit https://gerrit.wikimedia.org/r/60890
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I195a590844ebd1eee779cd2f3486c9e63035110d
Gerrit-PatchSet: 2
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Karim.rayani <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to