fix failing test and finish all wip scenarios

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
Reinier Balt 2011-05-08 22:09:27 +02:00
parent f05826d07a
commit 3faac2514d
10 changed files with 95 additions and 17 deletions

View file

@ -28,6 +28,18 @@ Then /^I should see the empty message in the deferred container$/ do
end
end
Then /^I should see the empty tickler message$/ do
wait_for :timeout => 5 do
selenium.is_visible("xpath=//div[@id='tickler-empty-nd']")
end
end
Then /^I should not see the empty tickler message$/ do
wait_for :timeout => 5 do
!selenium.is_visible("xpath=//div[@id='tickler-empty-nd']")
end
end
Then /^I should see an error flash message saying "([^"]*)"$/ do |message|
xpath = "//div[@id='message_holder']/h4[@id='flash']"
text = response.selenium.get_text("xpath=#{xpath}")