mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 01:06:31 +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
29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
When(/^I click on the main navigation button$/) do
|
|
on(ArticlePage).mainmenu_button_element.click
|
|
end
|
|
|
|
When(/^I click on "(.*?)" in the main navigation menu$/) do |text|
|
|
step 'I click on the main navigation button'
|
|
on(ArticlePage).navigation_element.link_element(text: text).when_visible.click
|
|
end
|
|
|
|
Then(/^I should see a link to "(.*?)" in the main navigation menu$/) do |text|
|
|
expect(on(ArticlePage).navigation_element.link_element(text: text)).to be_visible
|
|
end
|
|
|
|
Then(/^I should not see a link to "(.*?)" in the main navigation menu$/) do |text|
|
|
expect(on(ArticlePage).navigation_element.link_element(text: text)).not_to be_visible
|
|
end
|
|
|
|
Then(/^I should see a link to the about page$/) do
|
|
expect(on(ArticlePage).about_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see a link to the disclaimer$/) do
|
|
expect(on(ArticlePage).disclaimer_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should see a link to my user page in the main navigation menu$/) do
|
|
expect(on(ArticlePage).navigation_element.link_element(href: /User:#{user}/, text: user_label)).to be_visible
|
|
end
|