mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
13b60f6824
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 I6e763cd6b6763c60d2ad47bf384f739dfb1a07c0. Depends-On: I6e763cd6b6763c60d2ad47bf384f739dfb1a07c0 Change-Id: Id1692b50f3f0d282c8aea4c45b63845f418e0970
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
|