From 1ac5c7af6208132f630e4d040a86921268d7214d Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 2 Nov 2011 22:17:58 -0700 Subject: [PATCH] fixed some cukes --- features/blocks_user.feature | 3 ++- features/comments.feature | 1 - features/step_definitions/custom_web_steps.rb | 2 +- features/step_definitions/posts_steps.rb | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/features/blocks_user.feature b/features/blocks_user.feature index 19b5c7e4a..d74620b1a 100644 --- a/features/blocks_user.feature +++ b/features/blocks_user.feature @@ -10,8 +10,9 @@ Feature: Blocking a user from the stream Scenario: Blocking a user When I sign in as "bob@bob.bob" And I am on the home page + And I preemptively confirm the alert And I wait for the ajax to finish When I click on the first block button And I am on the home page And I wait for the ajax to finish - Then I should not see any posts in my stream \ No newline at end of file + Then I should not see any posts in my stream diff --git a/features/comments.feature b/features/comments.feature index 1441fddf1..df0509574 100644 --- a/features/comments.feature +++ b/features/comments.feature @@ -52,7 +52,6 @@ Feature: commenting And I preemptively confirm the alert And I click to delete the first comment And I wait for the ajax to finish - And I wait for 2 seconds Then I should not see "is that a poodle?" Scenario: expand the comment form in the main stream and an individual aspect stream diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 89e22582a..9682bbea5 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -58,7 +58,7 @@ And /^I hover over the "([^"]+)"$/ do |element| end 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 When /^I click to delete the first comment$/ do diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb index e0c1b9efe..c6c9c80d5 100644 --- a/features/step_definitions/posts_steps.rb +++ b/features/step_definitions/posts_steps.rb @@ -32,5 +32,5 @@ When /^The user deletes their first post$/ do end When /^I click on the first block button/ do - find(".block_button").click -end \ No newline at end of file + find(".block_user").click +end