mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-04 20:18:35 +00:00
61abb07b5d
Bug: T137711 Change-Id: I9aeb9d4c38bff31bdc2f248b74b6797a4e518f3d
22 lines
543 B
Ruby
22 lines
543 B
Ruby
Given(/^I am editing a random page with source editor$/) do
|
|
visit EditPage
|
|
end
|
|
|
|
When(/^I click Preview$/) do
|
|
on(EditPage).preview_element.when_present.click
|
|
end
|
|
|
|
When(/^I dismiss Welcome to Wikipedia popup$/) do
|
|
if env.lookup(:mediawiki_environment, default: nil) == 'beta'
|
|
on(EditPage).start_editing_element.click
|
|
end
|
|
end
|
|
|
|
When(/^I type (.+)$/) do |write_text|
|
|
on(EditPage).article_text = write_text
|
|
end
|
|
|
|
Then(/^the page should contain 3 \+ 2 image$/) do
|
|
expect(on(EditPage).math_image_element.when_present).to be_visible
|
|
end
|