Write a cucumber test for starting a private conversation
This commit is contained in:
parent
1c5f61fb78
commit
fe93fd5c91
1 changed files with 26 additions and 0 deletions
26
features/conversations.feature
Normal file
26
features/conversations.feature
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
@javascript
|
||||
Feature: private messages
|
||||
In order to be talkative
|
||||
As a 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"
|
||||
When I sign in as "bob@bob.bob"
|
||||
And a user with username "bob" is connected with "Alice_Awesome"
|
||||
|
||||
And I am on the conversations page
|
||||
|
||||
Scenario: send a message
|
||||
Given I follow "New Message"
|
||||
And I wait for the ajax to finish
|
||||
And I fill in "contact_autocomplete" with "Alice"
|
||||
And I press the first ".as-result-item" within ".as-results"
|
||||
And I fill in "conversation_subject" with "Greetings"
|
||||
And I fill in "conversation_text" with "hello, alice!"
|
||||
And I press "Send"
|
||||
And I wait for the ajax to finish
|
||||
Then I should see "Greetings" within "#conversation_inbox"
|
||||
And I should see "Greetings" within "#conversation_show"
|
||||
And I should see "hello, alice!" within ".stream"
|
||||
Loading…
Reference in a new issue