mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-12 16:05:09 +00:00
c4636667d4
"Welcome to Wikipedia" popup broke the scenario. Bug: T94150 Change-Id: I5d3b41b8f3060f6edc41a5afe2c992fc6faca4e7
20 lines
471 B
Ruby
20 lines
471 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
|
|
on(EditPage).start_editing_element.click
|
|
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
|