Merge "DatabaseMssql: Don't duplicate body of makeList()"
[mediawiki.git] / tests / browser / features / step_definitions / edit_page_steps.rb
blob5ab02bec3b603bc11d25a37a62a754dae195fdd3
1 When(/^I click Edit$/) do
2   on(MainPage).edit_link
3 end
5 When(/^I click Preview$/) do
6   on(EditPage).preview_button
7 end
9 When(/^I click Show Changes$/) do
10   on(EditPage).show_changes_button
11 end
13 When(/^I edit the page with "(.*?)"$/) do |edit_content|
14   on(EditPage).edit_page_content_element.send_keys(edit_content + @random_string)
15 end
17 When(/^I save the edit$/) do
18   on(EditPage).save_button
19 end
21 Then(/^the edited page content should contain "(.*?)"$/) do |content|
22   on(MainPage).page_content.should match(content + @random_string)
23 end