1 When(/^I click Edit$/) do
5 When(/^I click Preview$/) do
6 on(EditPage).preview_button
9 When(/^I click Show Changes$/) do
10 on(EditPage).show_changes_button
13 When(/^I edit the page with "(.*?)"$/) do |edit_content|
14 on(EditPage).edit_page_content_element.send_keys(edit_content + @random_string)
17 When(/^I save the edit$/) do
18 on(EditPage).save_button
21 Then(/^the edited page content should contain "(.*?)"$/) do |content|
22 on(MainPage).page_content.should match(content + @random_string)