mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-04 20:18:35 +00:00
d2ff0ef699
The test is broken on beta cluster because the formula is rendered as meta tag. It is rendered at img tag on my mediawiki-vagrant virtual machine. The test now works on both environments. Bug: T128190 Change-Id: I458d618af24533d104fcac25a8d8c6468b14605a
16 lines
346 B
Ruby
16 lines
346 B
Ruby
Given(/^I am editing a random page with source editor$/) do
|
|
visit EditPage
|
|
end
|
|
|
|
When(/^I click Preview$/) do
|
|
on(EditPage).preview
|
|
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
|