mediawiki-skins-MinervaNeue/tests/browser/features/support/pages/user_page.rb
Bartosz Dziewoński 13b60f6824 Remove user page CTA edit link browser test (move to MobileFrontend) [try #2]
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
2018-09-25 18:05:10 +00:00

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