connects_users.feature 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
Feature: sending and receiving requests

  Background: 
    Given a user with email "bob@bob.bob"
    And a user with email "alice@alice.alice"
    
  @javascript
  Scenario: initiating and accepting a contact request
    When I sign in as "bob@bob.bob"
    And I am on "alice@alice.alice"'s page
11
    And I press the first ".add.button" within "#aspects_list ul > li:first-child"
12
    And I wait for the ajax to finish
13
    Then I should see a ".added.button" within "#aspects_list ul > li:first-child"
14 15 16 17 18 19 20 21 22 23 24 25
    Then I go to the destroy user session page

    When I sign in as "alice@alice.alice"
    And I am on the aspects manage page
    Then I should see 1 contact request
    When I drag the contact request to the "Besties" aspect
    And I wait for the ajax to finish
    Then I should see 1 contact in "Besties"

    When I go to the home page
    Then I go to the aspects manage page
    Then I should see 1 contact in "Besties"
26 27 28 29 30
    Then I go to the destroy user session page

    When I sign in as "bob@bob.bob"
    And I am on the aspects manage page
    Then I should see 1 contact in "Besties"
31