mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
e87d838466
Bug: T182202 Change-Id: If46620941924b86c5403c9e928911b1aa5845d7a
33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
When(/^I click the language overlay close button$/) do
|
|
on(ArticlePage).overlay_languages_element.when_present.button_element(class: 'cancel').click
|
|
end
|
|
|
|
When(/^I see the language overlay$/) do
|
|
on(ArticlePage).overlay_languages_element.when_present
|
|
end
|
|
|
|
When /^I click on a language from the list of all languages$/ do
|
|
# API requests can sometimes take a long time so give additional time to verify this
|
|
on(ArticlePage).non_suggested_language_link_element.when_present(15).click
|
|
end
|
|
|
|
Then(/^I should not see the languages overlay$/) do
|
|
expect(on(ArticlePage).overlay_languages_element).not_to be_visible
|
|
end
|
|
|
|
Then(/^I should see the language overlay$/) do
|
|
expect(on(ArticlePage).overlay_languages_element.when_present).to be_visible
|
|
end
|
|
|
|
Then(/^I should see a non-suggested language link$/) do
|
|
expect(on(ArticlePage).non_suggested_language_link_element).to be_visible
|
|
end
|
|
|
|
Then(/^I should not see a suggested language link$/) do
|
|
expect(on(ArticlePage).suggested_language_link_element).not_to be_visible
|
|
end
|
|
|
|
Then(/^I should see a suggested language link$/) do
|
|
expect(on(ArticlePage).suggested_language_link_element).to be_visible
|
|
end
|