mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
6daf19dfb5
This is a MobileFrontend feature, implemented in ExtMobileFrontend::getUserPageContent(). Having the test for it in the Minerva repo made it harder to make changes to it. Adding it there in I7cac24cf64422212196439bf49598ed749d5fafa. Depends-On I7cac24cf64422212196439bf49598ed749d5fafa Change-Id: I93e0f195b3cad1ae83ee2ae3b5b4c5f08944882e
18 lines
469 B
Ruby
18 lines
469 B
Ruby
class UserPage < ArticlePage
|
|
include PageObject
|
|
|
|
page_url 'User:<%= params[:user] %>'
|
|
|
|
h1(:heading, css: '#section_0')
|
|
ul(:user_links, css: '.user-links')
|
|
a(:talk_link) do |page|
|
|
page.user_links_element.element.a(href: /User_talk:/)
|
|
end
|
|
a(:contributions_link) do |page|
|
|
page.user_links_element.element.a(href: /Special:Contributions\//)
|
|
end
|
|
a(:uploads_link) do |page|
|
|
page.user_links_element.element.a(href: /Special:Uploads\//)
|
|
end
|
|
end
|