[FIX] mail: indeterministic discuss test

This PR fixes the `Posting message should transform relevant data to emoji`
test that sometimes failed due to a race condition.

The assertion was too strict, this test just needs to check that the
emoji are properly parsed when posting a message.

Fixes runbot error: 20934.

closes odoo/odoo#120769

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
tsm-odoo
2023-05-09 06:07:30 +02:00
parent a61c6de00b
commit 8f399a270c
@@ -294,7 +294,7 @@ QUnit.test("Posting message should transform relevant data to emoji.", async (as
await openDiscuss(channelId);
await insertText(".o-mail-Composer-input", "test :P :laughing:");
await click(".o-mail-Composer-send");
assert.equal($(".o-mail-Message-body").text(), "test 😛 😆");
assert.containsOnce($, ".o-mail-Message-body:contains(test 😛 😆)");
});
QUnit.test(