Skip to content
Permalink
Browse files

Add extra assert in test

  • Loading branch information...
jgi-odoo committed Mar 25, 2019
1 parent 2f52983 commit 0d3454938cde77f3a212563c20c9300c0bf79ab3
Showing with 3 additions and 2 deletions.
  1. +3 −2 addons/mail/static/tests/chatter_tests.js
@@ -2265,7 +2265,7 @@ QUnit.test('followers widget: do not display follower duplications', async funct
});

QUnit.test('followers widget: display inactive followers with a different style', async function (assert) {
assert.expect(1);
assert.expect(2);

this.data.partner.records[0].message_follower_ids = [1,2,3];

@@ -2322,7 +2322,8 @@ QUnit.test('followers widget: display inactive followers with a different style'
session: {partner_id: 1},
});

assert.strictEqual(form.$('.o_inactive_partner').length, 1, 'there is 1 inactive followers');
assert.strictEqual(form.$('.o_inactive_partner').length, 1, 'there is 1 inactive follower');
assert.strictEqual(form.$('.o_inactive_partner_img').length, 1, 'there is 1 inactive follower\'s avatar');
form.destroy();
});

0 comments on commit 0d34549

Please sign in to comment.
You can’t perform that action at this time.