mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 14:47:08 +00:00
c0c90234d0
This moves all browser tests from MobileFrontend to the Minerva repo in preparation for separating the two. Note, this means browser tests will exist in both repositories for a period of time. This is important and necessary to ensure we do not break anything. See: https://lists.wikimedia.org/pipermail/mobile-l/2017-July/010536.html Bug: T168758 Change-Id: I84ae3ea14191f672cabcd52020e80b0a40a72ce1
36 lines
930 B
Ruby
36 lines
930 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
|
|
|
|
Then(/^there should be a link to create my user page$/) do
|
|
expect(on(UserPage).edit_link_element).to be_visible
|
|
end
|
|
|
|
When(/^I click the create my user page link$/) do
|
|
on(UserPage) do |page|
|
|
page.wait_until_rl_module_ready('skins.minerva.editor')
|
|
page.edit_link_element.click
|
|
end
|
|
end
|