Merge branch 'cuke-features' of https://github.com/sentientwaffle/diaspora into sentientwaffle-cuke-features

This commit is contained in:
Hexagon 2010-12-01 18:27:44 +01:00
commit 3268e556ed
2 changed files with 35 additions and 0 deletions

32
features/posts.feature Normal file
View file

@ -0,0 +1,32 @@
Feature: posting
In order to enlighten humanity for the good of society
As a rock star
I want to tell the world I am eating a yogurt
Scenario: post to all aspects
Given I am signed in
And I have an aspect called "Family"
And I am on the home page
When I click share across aspects
And I fill in "status_message_message" with "I am eating a yogurt"
And I press "Share"
And I follow "Family"
Then I should see "I am eating a yogurt"
Scenario Outline: post to one aspect
Given I am signed in
And I have an aspect called "PostTo"
And I have an aspect called "DidntPostTo"
And I am on the home page
When I follow "PostTo"
And I fill in "status_message_message" with "I am eating a yogurt"
And I press "Share"
And I follow "<aspect>"
Then I should <see> "I am eating a yogurt"
Examples:
| aspect | see |
| PostTo | see |
| DidntPostTo | not see |

View file

@ -0,0 +1,3 @@
When /^I click share across aspects$/ do
find("#content_creation_button").click
end