mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +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
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
Then(/^I should see a link to the privacy page$/) do
|
|
expect(on(ArticlePage).privacy_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see a link to the terms of use$/) do
|
|
expect(on(ArticlePage).terms_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see the link to the user page of the last editor$/) do
|
|
# T132753
|
|
on(ArticlePage) do |page|
|
|
page.wait_until_rl_module_ready('skins.minerva.scripts')
|
|
expect(page.last_modified_bar_history_userpage_link_element).to be_visible
|
|
end
|
|
end
|
|
|
|
Then(/^I should see the history link$/) do
|
|
expect(on(ArticlePage).standalone_edit_history_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see the beta mode indicator$/) do
|
|
expect(on(ArticlePage).beta_mode_indicator_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should not see the beta mode indicator$/) do
|
|
expect(on(ArticlePage).beta_mode_indicator_element).not_to be_visible
|
|
end
|
|
|
|
Then(/^I should see the last modified bar history link$/) do
|
|
expect(on(ArticlePage).last_modified_bar_history_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see the license link$/) do
|
|
expect(on(ArticlePage).license_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see the switch to desktop link$/) do
|
|
expect(on(ArticlePage).desktop_link_element).to be_visible
|
|
end
|