diff --git a/app/helpers/sockets_helper.rb b/app/helpers/sockets_helper.rb
index 1e9dcc508..27a86a8e5 100644
--- a/app/helpers/sockets_helper.rb
+++ b/app/helpers/sockets_helper.rb
@@ -18,11 +18,13 @@ module SocketsHelper
puts e.message
raise e
end
+ action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
+
if object.is_a? Photo
- {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object), :photo_hash => object.thumb_hash }.to_json
- else
- {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}.to_json
+ action_hash[:photo_hash] = object.thumb_hash
end
+
+ action_hash.to_json
end
diff --git a/test/selenium/diaspora_selenium b/test/selenium/diaspora_selenium
new file mode 100644
index 000000000..32250bf37
--- /dev/null
+++ b/test/selenium/diaspora_selenium
@@ -0,0 +1,14 @@
+
+
+
+
+
+ Test Suite
+
+
+
+
+
diff --git a/test/selenium/post_and_delete_status_message b/test/selenium/post_and_delete_status_message
new file mode 100644
index 000000000..911bd3c7e
--- /dev/null
+++ b/test/selenium/post_and_delete_status_message
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+post_and_delete_status_message
+
+
+
+
+| post_and_delete_status_message |
+
+
+ | open |
+ /login |
+ |
+
+
+ | type |
+ user_password |
+ evankorth |
+
+
+ | clickAndWait |
+ user_submit |
+ |
+
+
+ | type |
+ status_message_message |
+ THIS IS A RUNNING SELENIUM TEST AAAAAAAAH |
+
+
+ | click |
+ status_message_submit |
+ |
+
+
+ | verifyTextPresent |
+ THIS IS A RUNNING SELENIUM TEST AAAAAAAAH |
+ |
+
+
+ | click |
+ link=Delete |
+ |
+
+
+ | assertConfirmation |
+ Are you sure? |
+ |
+
+
+ | verifyTextNotPresent |
+ THIS IS A RUNNING SELENIUM TEST AAAAAAAAH |
+ |
+
+
+ | clickAndWait |
+ link=logout |
+ |
+
+
+
+
+