Mayankmadan has uploaded a new change for review.

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


Change subject: Additional browsertest for gadgets tab in preferences
......................................................................

Additional browsertest for gadgets tab in preferences

Bug: 58900
Change-Id: I5740cbb5f69f8f3135720f775916cd44996b4ac1
---
A features/preferences_gadgets.feature
A features/step_definitions/preferences_gadgets_steps.rb
A features/support/pages/preferences_gadgets_page.rb
3 files changed, 139 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests 
refs/changes/11/103411/1

diff --git a/features/preferences_gadgets.feature 
b/features/preferences_gadgets.feature
new file mode 100644
index 0000000..5e90e43
--- /dev/null
+++ b/features/preferences_gadgets.feature
@@ -0,0 +1,31 @@
+#
+# 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-2013 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
+#
[email protected] @login @test2.wikipedia.org
+Feature: Preferences Gadgets
+
+  Scenario: Preferences Appearance
+    Given I am logged in
+    When I navigate to Preferences
+      And I click Gadgets
+    Then I can select GalleryPreview
+      And I can select SlideShow
+      And I can select ZoomViewer
+      And I can select PopupChecks
+      And I can select AddEditLink
+      And I can select AddSectionPlus
+      And I can select QuickPreview
+      And I can select OldEditTools
+      And I can select UploadWizard
+      And I can select OldStyleUpload
+      And I can select MyUploads
+      And I can select Hide Upload Log From Watchlist
+      And I can select QInominator
diff --git a/features/step_definitions/preferences_gadgets_steps.rb 
b/features/step_definitions/preferences_gadgets_steps.rb
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/features/step_definitions/preferences_gadgets_steps.rb
diff --git a/features/support/pages/preferences_gadgets_page.rb 
b/features/support/pages/preferences_gadgets_page.rb
new file mode 100644
index 0000000..63dfa32
--- /dev/null
+++ b/features/support/pages/preferences_gadgets_page.rb
@@ -0,0 +1,108 @@
+#
+# 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-2013 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
+#
+class PreferencesGadgetsPage
+  include PageObject
+
+  include URL
+  page_url URL.url("Special:Preferences#mw-prefsection-rendering")
+
+  checkbox(:gallery_preview_check, id: "mw-input-wpgadgets-Gallerypreview")
+  checkbox(:slideshow_check, id: "mw-input-wpgadgets-Slideshow")
+  checkbox(:zoom_viewer_check, id: "mw-input-wpgadgets-ZoomViewer")
+  checkbox(:popups_check, id: "mw-input-wpgadgets-popups")
+  checkbox(:add_edit_link_check, id: "mw-input-wpgadgets-edittop")
+  checkbox(:add_section_plus_check, id: "mw-input-wpgadgets-addsection-plus")
+  checkbox(:quick_preview_check, id: "mw-input-wpgadgets-QPreview")
+  checkbox(:old_edit_tools_check, id: "mw-input-wpgadgets-OldEdittools")
+  checkbox(:upload_wizard_check, id: "mw-input-wpgadgets-UploadWizard")
+  checkbox(:old_upload_form_check, id: "mw-input-wpgadgets-OldUploadForm")
+  checkbox(:my_uploads_check, id: "mw-input-wpgadgets-MyUploads")
+  checkbox(:upload_logs_watchlist_check, id: 
"mw-input-wpgadgets-Watchlist-wo-uploads")
+  checkbox(:q_inominator_check, id: "mw-input-wpgadgets-QInominator")
+  checkbox(:disable_image_annotator_check, id: 
"mw-input-wpgadgets-DisableImageAnnotator")
+  checkbox(:rotate_link_check, id: "mw-input-wpgadgets-RotateLink")
+  checkbox(:categories_above_all_check, id: 
"mw-input-wpgadgets-CategoryAboveAll")
+  checkbox(:categories_below_image_check, id: 
"mw-input-wpgadgets-CategoryAboveBelowImage")
+  checkbox(:long_image_names_check, id: 
"mw-input-wpgadgets-Long-Image-Names-in-Categories")
+  checkbox(:stock_photo_check, id: "mw-input-wpgadgets-Stockphoto")
+  checkbox(:utc_live_clock_check, id: "mw-input-wpgadgets-UTCLiveClock")
+  checkbox(:tabify_vector_skin_check, id: 
"mw-input-wpgadgets-DropdownToTabbar")
+  checkbox(:diff_green_blue_check, id: "mw-input-wpgadgets-diffGreenBlue")
+  checkbox(:pretty_log_check, id: "mw-input-wpgadgets-PrettyLog")
+  checkbox(:multimedia_beta_check, id: "mw-input-wpgadgets-mwEmbed")
+  checkbox(:extra_tabs_2_check, id: "mw-input-wpgadgets-ExtraTabs2")
+  checkbox(:regex_filtering_check, id: "mw-input-wpgadgets-rightsfilter")
+  checkbox(:contribs_range_check, id: "mw-input-wpgadgets-contribsrange")
+  checkbox(:gallery_filter_extension_check, id: 
"mw-input-wpgadgets-GalleryFilterExtension")
+  checkbox(:thumbnail_purge_check, id: "mw-input-wpgadgets-ThumbnailPurger")
+  checkbox(:purge_tab_check, id: "mw-input-wpgadgets-purgetab")
+  checkbox(:gallery_details_check, id: "mw-input-wpgadgets-GalleryDetails")
+  checkbox(:add_information_check, id: "mw-input-wpgadgets-AddInformation")
+  checkbox(:what_is_that_check, id: "mw-input-wpgadgets-WhatIsThat")
+  checkbox(:quick_delete_check, id: "mw-input-wpgadgets-QuickDelete")
+  checkbox(:user_messages_check, id: "mw-input-wpgadgets-UserMessages")
+  checkbox(:tineye_check, id: "mw-input-wpgadgets-Tineye")
+  checkbox(:google_images_check, id: "mw-input-wpgadgets-GoogleImages")
+  checkbox(:regex_menu_check, id: "mw-input-wpgadgets-RegexMenuFramework")
+  checkbox(:cat_a_lot_check, id: "mw-input-wpgadgets-Cat-a-lot")
+  checkbox(:hot_cat_check, id: "mw-input-wpgadgets-HotCat")
+  checkbox(:glamorous_check, id: "mw-input-wpgadgets-Glamorous")
+  checkbox(:search_not_in_cat_check, id: "mw-input-wpgadgets-Searchnotincat")
+  checkbox(:sum_it_up_check, id: "mw-input-wpgadgets-Sum-it-up")
+  checkbox(:cat_scan_2_check, id: "mw-input-wpgadgets-CatScan2-link")
+  checkbox(:commons_commander_check, id: "mw-input-wpgadgets-CC")
+  checkbox(:europeana_search_check, id: "mw-input-wpgadgets-Europeana-search")
+  checkbox(:geo_tool_box_check, id: "mw-input-wpgadgets-Geotoolbox")
+  checkbox(:geo_coding_todo_check, id: "mw-input-wpgadgets-Geocodecattodo")
+  checkbox(:gmaps_check, id: "mw-input-wpgadgets-Gmaps")
+  checkbox(:bi_di_editing_check, id: "mw-input-wpgadgets-BiDiEditing")
+  checkbox(:shortlink_check, id: "mw-input-wpgadgets-ShortLink")
+  checkbox(:magical_conversion_check, id: 
"mw-input-wpgadgets-EoMagicalConversion")
+  checkbox(:my_lang_notify_check, id: "mw-input-wpgadgets-MyLangNotify")
+  checkbox(:disable_language_select_check, id: 
"mw-input-wpgadgets-DisableLanguageSelect")
+  checkbox(:google_translate_check, id: "mw-input-wpgadgets-GoogleTranslate")
+  checkbox(:mod_roll_back_check, id: "mw-input-wpgadgets-modrollback")
+  checkbox(:remove_access_keys_check, id: 
"mw-input-wpgadgets-removeAccessKeys")
+  checkbox(:search_focus_check, id: "mw-input-wpgadgets-searchFocus")
+  checkbox(:google_trans_check, id: "mw-input-wpgadgets-GoogleTrans")
+  checkbox(:image_annotator_check, id: "mw-input-wpgadgets-ImageAnnotator")
+  checkbox(:navigation_popups_check, id: 
"mw-input-wpgadgets-Navigation_popups")
+  checkbox(:exlinks_check, id: "mw-input-wpgadgets-exlinks")
+  checkbox(:revision_jumper_check, id: "mw-input-wpgadgets-revisionjumper")
+  checkbox(:twinkle_check, id: "mw-input-wpgadgets-Twinkle")
+  checkbox(:hide_fundraising_notice_check, id: 
"mw-input-wpgadgets-HideFundraisingNotice")
+  checkbox(:default_summaries_check, id: "mw-input-wpgadgets-defaultsummaries")
+  checkbox(:citations_check, id: "mw-input-wpgadgets-citations")
+  checkbox(:wiki_ed_diff_check, id: "mw-input-wpgadgets-wikEdDiff")
+  checkbox(:text_area_sans_serif_check, id: 
"mw-input-wpgadgets-textareasansserif")
+  checkbox(:proveit_check, id: "mw-input-wpgadgets-ProveIt")
+  checkbox(:wiki_ed_check, id: "mw-input-wpgadgets-wikEd")
+  checkbox(:edit_top_check, id: "mw-input-wpgadgets-edittop")
+  checkbox(:my_sandbox_check, id: "mw-input-wpgadgets-mySandbox")
+  checkbox(:external_search_check, id: "mw-input-wpgadgets-ExternalSearch")
+  checkbox(:dropdown_menus_check, id: "mw-input-wpgadgets-dropdown-menus")
+  checkbox(:comments_in_local_time_check, id: 
"mw-input-wpgadgets-CommentsInLocalTime")
+  checkbox(:new_diff_check, id: "mw-input-wpgadgets-NewDiff")
+  checkbox(:no_animations_check, id: "mw-input-wpgadgets-NoAnimations")
+  checkbox(:no_small_fonts_check, id: "mw-input-wpgadgets-NoSmallFonts")
+  checkbox(:metadata_check, id: "mw-input-wpgadgets-metadata")
+  checkbox(:menu_tabs_toggle_check, id: "mw-input-wpgadgets-MenuTabsToggle")
+  checkbox(:history_num_diff_check, id: "mw-input-wpgadgets-HistoryNumDiff")
+  checkbox(:left_edit_links_check, id: "mw-input-wpgadgets-lefteditlinks")
+  checkbox(:hide_styling_wmf2011_check, id: 
"mw-input-wpgadgets-wmfFR2011Style")
+  checkbox(:black_skin_check, id: "mw-input-wpgadgets-Blackskin")
+  checkbox(:widen_search_check, id: "mw-input-wpgadgets-widensearch")
+  checkbox(:dejavu_sans_check, id: "mw-input-wpgadgets-DejaVu_Sans")
+  checkbox(:jsl_check, id: "mw-input-wpgadgets-JSL")
+  checkbox(:show_messages_names_check, id: 
"mw-input-wpgadgets-ShowMessageNames")
+  checkbox(:bug_status_update_check, id: "mw-input-wpgadgets-BugStatusUpdate")
+end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5740cbb5f69f8f3135720f775916cd44996b4ac1
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Mayankmadan <[email protected]>

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

Reply via email to