mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-29 08:24:47 +00:00
db96b68d81
* The check for whether the page issues code has been loaded should be run just before clicking the banner. It's in the wrong place. * Now page issues is live across all wikis, no need for "in beta" check * Seledctor can be simplified now no need to worry about beta Change-Id: Ie24a9d9fc1966ca5db2cd0a6a37c1aa6d719924a
25 lines
712 B
Ruby
25 lines
712 B
Ruby
When(/^I click the overlay issue close button$/) do
|
|
on(ArticlePage).overlay_close_button_element.when_present.click
|
|
end
|
|
|
|
When(/^I click the page issues stamp$/) do
|
|
on(ArticlePage).issues_stamp_element.when_present.click
|
|
end
|
|
|
|
When(/^I see the issues overlay$/) do
|
|
on(ArticlePage).overlay_element.when_present
|
|
end
|
|
|
|
When(/^this page has issues$/) do
|
|
on(ArticlePage).wait_until_rl_module_ready('skins.minerva.scripts')
|
|
on(ArticlePage).issues_stamp_element.when_present
|
|
end
|
|
|
|
Then(/^I should not see the issues overlay$/) do
|
|
expect(on(ArticlePage).overlay_element).not_to be_visible
|
|
end
|
|
|
|
Then(/^I should see the issues overlay$/) do
|
|
expect(on(ArticlePage).overlay_element.when_present).to be_visible
|
|
end
|