2014-04-20 15:42:40 +00:00
|
|
|
class E2ETestPage
|
2014-01-15 00:03:34 +00:00
|
|
|
include PageObject
|
|
|
|
include URL
|
2014-04-01 08:46:48 +00:00
|
|
|
|
2014-04-20 15:42:40 +00:00
|
|
|
page_url URL.url("MediaViewerE2ETest")
|
2014-01-15 00:03:34 +00:00
|
|
|
|
|
|
|
# Tag page elements that we will need.
|
2014-02-20 02:46:28 +00:00
|
|
|
|
|
|
|
# First image in lightbox demo page
|
2014-04-11 09:31:38 +00:00
|
|
|
a(:image1_in_article, class: "image", href: /Kerala\.jpg$/)
|
2014-02-20 02:46:28 +00:00
|
|
|
|
2014-04-01 08:46:48 +00:00
|
|
|
a(:other_image_in_article, href: /Academy_of_Sciences\.jpg$/)
|
|
|
|
|
2014-04-20 15:42:40 +00:00
|
|
|
# Black overlay
|
|
|
|
div(:mmv_overlay, class: "mw-mmv-overlay")
|
|
|
|
|
2014-02-20 02:46:28 +00:00
|
|
|
# Wrapper div for all mmv elements
|
2014-03-31 21:33:12 +00:00
|
|
|
div(:mmv_wrapper, class: "mw-mmv-wrapper")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
|
|
|
# Wrapper div for image
|
2014-03-31 21:33:12 +00:00
|
|
|
div(:mmv_image_div, class: "mw-mmv-image")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
|
|
|
# Metadata elements
|
2014-03-31 21:33:12 +00:00
|
|
|
span(:mmv_metadata_title, class: "mw-mmv-title")
|
|
|
|
a(:mmv_metadata_license, class: "mw-mmv-license cc-license")
|
|
|
|
p(:mmv_metadata_credit, class: "mw-mmv-credit")
|
|
|
|
span(:mmv_metadata_source, class: "mw-mmv-source")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
div(:mmv_image_metadata_wrapper, class: "mw-mmv-image-metadata")
|
|
|
|
p(:mmv_image_metadata_caption, class: "mw-mmv-caption")
|
|
|
|
p(:mmv_image_metadata_desc, class: "mw-mmv-image-desc")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
ul(:mmv_image_metadata_links_wrapper, class: "mw-mmv-image-links")
|
|
|
|
a(:mmv_image_metadata_repo_link, class: "mw-mmv-repo")
|
|
|
|
li(:mmv_image_metadata_category_links_wrapper, class: "mw-mmv-image-category")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
|
|
|
# File usage
|
2014-03-31 21:33:12 +00:00
|
|
|
div(:mmv_image_metadata_fileusage_wrapper, class: "mw-mmv-fileusage-container")
|
|
|
|
li(:mmv_image_metadata_fileusage_local_section_title, class: "mw-mmv-fileusage-local-section")
|
2014-02-20 02:46:28 +00:00
|
|
|
|
|
|
|
# Controls
|
2014-03-31 21:33:12 +00:00
|
|
|
div(:mmv_next_button, class: "mw-mmv-next-image")
|
|
|
|
div(:mmv_previous_button, class: "mw-mmv-prev-image")
|
|
|
|
div(:mmv_close_button, class: "mw-mmv-close")
|
2014-04-01 08:46:48 +00:00
|
|
|
div(:mmv_image_loaded_cucumber, class: "mw-mmv-image-loaded-cucumber")
|
2014-01-15 00:03:34 +00:00
|
|
|
end
|