mediawiki-skins-MinervaNeue/tests/browser/features/step_definitions/user_page_steps.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

25 lines
632 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
Then(/^there should be a link to my uploads$/) do
expect(on(UserPage).uploads_link_element).to be_visible
end