Merge "Avoid warnings for empty file sha1 keys"
[lhc/web/wiklou.git] / tests / browser / features / step_definitions / edit_page_steps.rb
1 When(/^I click Edit$/) do
2 on(MainPage).edit_link
3 end
4
5 When(/^I edit the page with "(.*?)"$/) do |edit_content|
6 on(EditPage).edit_page_content_element.send_keys(edit_content + @random_string)
7 end
8
9 When(/^I save the edit$/) do
10 on(EditPage).save_button
11 end
12
13 Then(/^the edited page content should contain "(.*?)"$/) do |content|
14 on(MainPage).page_content.should match(content + @random_string)
15 end
16