fixed some cukes
This commit is contained in:
parent
07f713f46c
commit
1ac5c7af62
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue