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