Zfilipin has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/348775 )

Change subject: Echo should notify user about new edits on user talk page
......................................................................

Echo should notify user about new edits on user talk page

Bug: T14691
Change-Id: Ieacfbe286ac9d7f54edb59a01f3fc087ba540b17
---
M tests/rspec/notification_spec.rb
1 file changed, 15 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/75/348775/1

diff --git a/tests/rspec/notification_spec.rb b/tests/rspec/notification_spec.rb
index 70e7a65..b8c9be5 100644
--- a/tests/rspec/notification_spec.rb
+++ b/tests/rspec/notification_spec.rb
@@ -157,4 +157,19 @@
     expect(flow_new_topic['timestamp']['date']).to eq 'Today'
   end
 
+  it 'should notify user about new edits on user talk page' do
+    @client.create_account(@random_username, @random_password)
+
+    user_page = 'User talk:' + @random_username
+    @client.edit(title: user_page, text: "Hello [[User:#{@random_username}]] 
~~~~")
+
+    @client.log_in @random_username, @random_password
+
+    notifications = @client.query(meta: 
'notifications').data['notifications']['list']
+    mention_user_talk = notifications.last
+    expect(mention_user_talk['type']).to eq 'edit-user-talk'
+    expect(mention_user_talk['agent']['name']).to eq @admin_username
+    expect(mention_user_talk['title']['full']).to eq user_page
+  end
+
 end

-- 
To view, visit https://gerrit.wikimedia.org/r/348775
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieacfbe286ac9d7f54edb59a01f3fc087ba540b17
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>
Gerrit-Reviewer: Etonkovidova <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to