un-wip delete post feature

This commit is contained in:
Raphael 2011-01-26 10:50:26 -08:00
parent 91bfdf0e75
commit c57ef8853c
3 changed files with 4 additions and 14 deletions

View file

@ -13,7 +13,7 @@ Feature: posting
And I am on the home page
Then I should see "I am eating a yogurt" within ".stream_element"
@javascript @wip
@javascript
Scenario: delete a post
Given I am signed in
And I have an aspect called "Family"
@ -23,8 +23,8 @@ Feature: posting
And I press "Share"
And I am on the home page
And I hover over the post
And I preemptively confirm the alert
And I press the first ".delete" within ".stream_element"
And I confirm the alert
And I am on the home page
Then I should not see "I am eating a yoghurt"

View file

@ -1,9 +0,0 @@
@javascript @wip
Feature: posting a message
Scenario: public messages
Given I am signed in
And I fill in "Post a message to all" with "ohai"
And I wait for the "Share" button to appear
And I press "Share"
Then I should see "ohai" in the main content area

View file

@ -15,9 +15,8 @@ And /^I hover over the post$/ do
page.execute_script('$(".stream_element").first().mouseover()')
end
And /^I confirm the alert$/ do
a = page.driver.browser.switch_to.alert
a.accept
And /^I preemptively confirm the alert$/ do
a = page.evaluate_script("window.confirm = function() { return true; }")
end
When /^(.*) in the modal window$/ do |action|