Karim.rayani has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60890


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, 18 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests 
refs/changes/90/60890/1

diff --git a/features/pdf.feature b/features/pdf.feature
new file mode 100644
index 0000000..ad20ac4
--- /dev/null
+++ b/features/pdf.feature
@@ -0,0 +1,8 @@
+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..f5d366d
--- /dev/null
+++ b/features/step_definitions/pdf_steps.rb
@@ -0,0 +1,8 @@
+
+Then(/^Download as PDF should be present$/) do
+  #@browser.a(text: 'Download as PDF').should exist
+  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..6d18e6f 100644
--- a/features/support/pages/random_page.rb
+++ b/features/support/pages/random_page.rb
@@ -12,9 +12,10 @@
   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')
   button(:search_button, id: 'searchButton')
-  div(:input_method, class: 'imeselector imeselector-toggle')
 end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I195a590844ebd1eee779cd2f3486c9e63035110d
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Karim.rayani <[email protected]>

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

Reply via email to