mediawiki-extensions-Multim.../tests/browser/features/support/pages/lightbox_demo_page.rb
Gilles Dubuc 773ed3673b Point the navigation E2E test to the right image
Since we shuffled content around on Lightbox_demo,
the test was trying to read the wrong image.

Change-Id: I4ccaa0a1ab354aa4c19bc3870fb54b0ea11ff086
2014-03-11 16:02:18 +01:00

41 lines
1.3 KiB
Ruby

class LightboxDemoPage
include PageObject
include URL
page_url URL.url("Lightbox_demo")
# Tag page elements that we will need.
# First image in lightbox demo page
a(:image1_in_article, href: /Kerala\.jpg$/)
# Wrapper div for all mmv elements
div(:mmv_wrapper, class: "mlb-wrapper")
# Wrapper div for image
div(:mmv_image_div, class: "mlb-image")
# Metadata elements
span(:mmv_metadata_title, class: "mw-mlb-title")
a(:mmv_metadata_license, class: "mw-mlb-license cc-license")
p(:mmv_metadata_credit, class: "mw-mlb-credit")
span(:mmv_metadata_source, class: "mw-mlb-source")
div(:mmv_image_metadata_wrapper, class: "mw-mlb-image-metadata")
p(:mmv_image_metadata_caption, class: "mw-mlb-caption")
p(:mmv_image_metadata_desc, class: "mw-mlb-image-desc")
ul(:mmv_image_metadata_links_wrapper, class: "mw-mlb-image-links")
a(:mmv_image_metadata_repo_link, class: "mw-mlb-repo")
li(:mmv_image_metadata_category_links_wrapper, class: "mw-mlb-image-category")
# File usage
div(:mmv_image_metadata_fileusage_wrapper, class: "mw-mlb-fileusage-container")
li(:mmv_image_metadata_fileusage_local_section_title, class: "mw-mlb-fileusage-local-section")
# Controls
div(:mmv_next_button, class: "mw-mlb-next-image")
div(:mmv_previous_button, class: "mw-mlb-prev-image")
div(:mmv_close_button, class: "mlb-close")
end