From 3494691286f77c09a3188a2c66c9d2cd3e18687b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 2 Feb 2017 16:37:41 +0100 Subject: [PATCH] Fix failing tests after allowing chatting with pending/requesting contacts --- spec/controlbox.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/controlbox.js b/spec/controlbox.js index 2aff39195..65ece52c8 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -527,7 +527,7 @@ }); converse.rosterview.$el.find(".pending-contact-name:contains('"+name+"')") - .siblings('.remove-xmpp-contact').click(); + .parent().siblings('.remove-xmpp-contact').click(); expect(window.confirm).toHaveBeenCalled(); expect(converse.connection.sendIQ).toHaveBeenCalled(); @@ -556,7 +556,7 @@ }); expect(converse.rosterview.get('Pending contacts').$el.is(':visible')).toEqual(true); converse.rosterview.$el.find(".pending-contact-name:contains('"+name+"')") - .siblings('.remove-xmpp-contact').click(); + .parent().siblings('.remove-xmpp-contact').click(); expect(window.confirm).toHaveBeenCalled(); expect(converse.connection.sendIQ).toHaveBeenCalled(); expect(converse.rosterview.get('Pending contacts').$el.is(':visible')).toEqual(false); @@ -570,7 +570,7 @@ for (var i=0; i