mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
bfdfc1165c
Slide the main menu over the page instead of sliding the page over the menu. Also, use viewport units for the main and notification menus. Note, this lays foundation work for T225213. Bug: T206354 Change-Id: I14b67d1e97b84086ea13e28df8148824a1f493e3
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.when_visible).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
|