mediawiki-skins-MinervaNeue/tests/browser/features/step_definitions/user_page_steps.rb
Ammar 6a0192bf37 Remove "uploads" link from userpages
*This commit also removes it from tests and references

Bug: T233985
Change-Id: I0d7eb72a2663f1d1138afe09124a154ad0502498
2019-10-02 00:11:13 +01:00

21 lines
519 B
Ruby

Given(/^I visit my user page$/) do
visit(UserPage, using_params: { user: user })
end
Then(/^I should be on my user page$/) do
on(UserPage) do |page|
page.wait_until do
page.heading_element.when_present
end
expect(page.heading_element).to be_visible
end
end
Then(/^there should be a link to my contributions$/) do
expect(on(UserPage).contributions_link_element).to be_visible
end
Then(/^there should be a link to my talk page$/) do
expect(on(UserPage).talk_link_element).to be_visible
end