fixed some cukes

This commit is contained in:
danielgrippi 2011-11-02 22:17:58 -07:00
parent 07f713f46c
commit 1ac5c7af62
4 changed files with 5 additions and 5 deletions

View file

@ -10,8 +10,9 @@ Feature: Blocking a user from the stream
Scenario: Blocking a user Scenario: Blocking a user
When I sign in as "bob@bob.bob" When I sign in as "bob@bob.bob"
And I am on the home page And I am on the home page
And I preemptively confirm the alert
And I wait for the ajax to finish And I wait for the ajax to finish
When I click on the first block button When I click on the first block button
And I am on the home page And I am on the home page
And I wait for the ajax to finish And I wait for the ajax to finish
Then I should not see any posts in my stream Then I should not see any posts in my stream

View file

@ -52,7 +52,6 @@ Feature: commenting
And I preemptively confirm the alert And I preemptively confirm the alert
And I click to delete the first comment And I click to delete the first comment
And I wait for the ajax to finish And I wait for the ajax to finish
And I wait for 2 seconds
Then I should not see "is that a poodle?" Then I should not see "is that a poodle?"
Scenario: expand the comment form in the main stream and an individual aspect stream Scenario: expand the comment form in the main stream and an individual aspect stream

View file

@ -58,7 +58,7 @@ And /^I hover over the "([^"]+)"$/ do |element|
end end
When /^I click to delete the first post$/ do When /^I click to delete the first post$/ do
page.execute_script('$(".stream_element").first().find(".stream_element_delete").first().click()') page.execute_script('$(".stream_element").first().find(".remove_post").first().click()')
end end
When /^I click to delete the first comment$/ do When /^I click to delete the first comment$/ do

View file

@ -32,5 +32,5 @@ When /^The user deletes their first post$/ do
end end
When /^I click on the first block button/ do When /^I click on the first block button/ do
find(".block_button").click find(".block_user").click
end end