fix failing selenium scenarios because of starring changes

This commit is contained in:
Reinier Balt 2011-08-11 10:13:53 +02:00
parent 75a9bbe7f4
commit 30c578f93a
2 changed files with 7 additions and 7 deletions

View file

@ -93,7 +93,7 @@ end
Then /^the pattern "([^\"]*)" should be starred$/ do |pattern_name|
pattern = @current_user.recurring_todos.find_by_description(pattern_name)
pattern.should_not be_nil
xpath = "//div[@id='recurring_todo_#{pattern.id}']//img[@class='starred_todo']"
xpath = "//div[@id='recurring_todo_#{pattern.id}']//img[@class='todo_star starred']"
response.should have_xpath(xpath)
end