conversations.feature 1.02 KB
Newer Older
1
@javascript @mobile
2
Feature: private conversations mobile
3 4 5 6 7 8 9 10
    In order to be talkative
    As a mobile user
    I want to converse with people

  Background:
    Given a user with username "bob"
    And a user named "Alice Awesome" with email "alice@alice.alice"
    And a user with username "bob" is connected with "alice_awesome"
11
    And I sign in as "bob@bob.bob" on the mobile website
12 13 14

  Scenario: send and delete a mobile message
    Given I send a mobile message with subject "Greetings" and text "hello, alice!" to "Alice Awesome"
15
    Then I should see "Greetings" within ".conversation h3"
16
    And "Alice Awesome" should be part of active conversation
17
    And I should see "hello, alice!" within ".stream-element"
18
    When I sign in as "alice@alice.alice" on the mobile website
19 20 21
    And I reply with "hey, how you doing?"
    And I press the first ".ltr" within ".conversation"
    Then I should see "hey, how you doing?"
22
    When I confirm the alert after I click on selector "a.remove"
23
    Then I should not see "hey, how you doing"