Commit c57ef885 authored by Raphael's avatar Raphael

un-wip delete post feature

parent 91bfdf0e
......@@ -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"
......
@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
\ No newline at end of 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|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment