2017-06-09 19:12:53 +00:00
|
|
|
class UserPage < ArticlePage
|
|
|
|
include PageObject
|
|
|
|
|
|
|
|
page_url 'User:<%= params[:user] %>'
|
|
|
|
|
|
|
|
h1(:heading, css: '#section_0')
|
|
|
|
ul(:user_links, css: '.user-links')
|
2018-09-25 15:46:12 +00:00
|
|
|
div(:cta_holder, css: '.cta-holder')
|
2017-06-09 19:12:53 +00:00
|
|
|
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
|
2018-09-25 15:46:12 +00:00
|
|
|
a(:edit_link) do |page|
|
|
|
|
page.cta_holder_element.element.a(href: %r{#/editor/0})
|
|
|
|
end
|
2017-06-09 19:12:53 +00:00
|
|
|
end
|