mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-04 20:18:35 +00:00
c4636667d4
"Welcome to Wikipedia" popup broke the scenario. Bug: T94150 Change-Id: I5d3b41b8f3060f6edc41a5afe2c992fc6faca4e7
18 lines
416 B
Ruby
18 lines
416 B
Ruby
class EditPage
|
|
include PageObject
|
|
|
|
page_url 'Special:Random?action=edit'
|
|
|
|
text_area(:article_text, id: 'wpTextbox1')
|
|
button(:preview, id: 'wpPreview')
|
|
span(:start_editing, text: 'Start editing')
|
|
|
|
def math_image_element
|
|
if env.lookup(:mediawiki_environment, default: nil) == 'beta'
|
|
browser.meta(class: 'mwe-math-fallback-image-inline')
|
|
else
|
|
browser.img(class: 'tex')
|
|
end
|
|
end
|
|
end
|