mentioning a person from their profile page, added js & jasmine, still need to add the mention style, and prevent deselecting the last one a tiny sass add publishing from the profile works, need js translation added the translation made the hover state consistant need to fix the cucumber spec specs are green need to add a button added the buttion to mention people moved the publisher to the facebox fixed the cucumbers for the modal window
82 lines
3.1 KiB
Gherkin
82 lines
3.1 KiB
Gherkin
@javascript
|
|
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
|
|
|
|
Background:
|
|
Given a user with username "bob"
|
|
And a user with username "alice"
|
|
When I sign in as "bob@bob.bob"
|
|
And a user with username "bob" is connected with "alice"
|
|
And I have an aspect called "PostTo"
|
|
And I have an aspect called "DidntPostTo"
|
|
And I have user with username "alice" in an aspect called "PostTo"
|
|
And I have user with username "alice" in an aspect called "DidntPostTo"
|
|
|
|
And I have no open aspects saved
|
|
And I am on the home page
|
|
|
|
Scenario: post to all aspects
|
|
Given I expand the publisher
|
|
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
|
And I press "Share"
|
|
And I follow "Home"
|
|
Then I should see "I am eating a yogurt" within ".stream_element"
|
|
|
|
Scenario: delete a post
|
|
Given I expand the publisher
|
|
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
|
And I press "Share"
|
|
And I follow "Home"
|
|
And I hover over the post
|
|
And I preemptively confirm the alert
|
|
And I click to delete the first post
|
|
And I follow "Home"
|
|
Then I should not see "I am eating a yogurt"
|
|
|
|
Scenario Outline: post to one aspect
|
|
When I follow "PostTo"
|
|
And I wait for the ajax to finish
|
|
And I expand the publisher
|
|
And I fill in "status_message_fake_text" with "I am eating a yogurt"
|
|
And I press "Share"
|
|
And I follow "Home"
|
|
And I follow "<aspect>"
|
|
Then I should <see> "I am eating a yogurt"
|
|
|
|
Examples:
|
|
| aspect | see |
|
|
| PostTo | see |
|
|
| DidntPostTo | not see |
|
|
|
|
Scenario Outline: posting to all aspects from the profile page
|
|
Given I am on "alice@alice.alice"'s page
|
|
And I have turned off jQuery effects
|
|
And I click "Mention" button
|
|
And I expand the publisher in the modal window
|
|
And I append "#publisher #status_message_text" with "I am eating a yogurt" in the modal window
|
|
And I press "Share" in the modal window
|
|
And I follow "<aspect>"
|
|
Then I should <see> "I am eating a yogurt"
|
|
|
|
Examples:
|
|
| aspect | see |
|
|
| PostTo | see |
|
|
| DidntPostTo | see |
|
|
|
|
Scenario Outline: posting to one aspect from the profile page
|
|
Given I am on "alice@alice.alice"'s page
|
|
And I have turned off jQuery effects
|
|
And I click "Mention" button
|
|
And I expand the publisher in the modal window
|
|
And I append "#publisher #status_message_text" with "I am eating a yogurt" in the modal window
|
|
And I follow "DidntPostTo" within "#publisher" in the modal window
|
|
And I press "Share" in the modal window
|
|
And I follow "<aspect>"
|
|
Then I should <see> "I am eating a yogurt"
|
|
|
|
Examples:
|
|
| aspect | see |
|
|
| PostTo | see |
|
|
| DidntPostTo | not see |
|