Commit 74fff52e authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Benjamin Neff

Fix message modal on profile page

closes #7137

fixes #7136
parent ac08e935
......@@ -34,6 +34,7 @@ Note: Although this is a minor release, the configuration file changed because t
* Clicking photos on mobile should no longer cause 404s [#7071](https://github.com/diaspora/diaspora/pull/7071)
* Fix avatar size on mobile privacy page for ignored people [#7148](https://github.com/diaspora/diaspora/pull/7148)
* Don't display tag following button when logged out [#7155](https://github.com/diaspora/diaspora/pull/7155)
* Fix message modal on profile page[#7137](https://github.com/diaspora/diaspora/pull/7137)
## Features
* Deleted comments will be removed when loading more comments [#7045](https://github.com/diaspora/diaspora/pull/7045)
......
......@@ -2,6 +2,7 @@
$(document).ready(function () {
var data = $.parseJSON( "#{escape_javascript(@contacts_json)}" );
new app.views.ConversationsForm({
el: $("form#new-conversation").parent(),
contacts: data,
prefillName: "#{h params[:name]}",
prefillValue: "#{@contact_ids}"
......
......@@ -44,6 +44,18 @@ Feature: private conversations
Then I should have 2 unread private messages
And I should have 2 email delivery
Scenario: send a message from the profile page
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
And I click on selector "#message_button"
And I fill in "conversation-subject" with "Greetings"
And I fill in "new-message-text" with "hello, alice!"
And I press "Send" within "#conversationModal"
Then I should see "Greetings" within "#conversation-inbox"
And I should see "Greetings" within "#conversation-show"
And "Alice Awesome" should be part of active conversation
And I should see "hello, alice!" within ".stream_container"
Scenario: delete a conversation
When I sign in as "bob@bob.bob"
And I send a message with subject "Greetings" and text "hello, alice!" to "Alice Awesome"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment