fix: message replies compatible with WhatsApp Web v2.2241.6 (#1765)

* fix message replies

* fix up some tests
This commit is contained in:
Pedro S. Lopez 2022-10-26 23:32:06 -04:00 • committed by GitHub
commit 9981723505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,8 @@ describe('Message', function () {
expect(message.isStarred).to.equal(false);
await message.star();
await helper.sleep(1000);
// reload and check
await message.reload();
expect(message.isStarred).to.equal(true);
@ -75,6 +77,8 @@ describe('Message', function () {
expect(message.isStarred).to.equal(true);
await message.unstar();
await helper.sleep(1000);
// reload and check
await message.reload();
expect(message.isStarred).to.equal(false);
@ -85,7 +89,7 @@ describe('Message', function () {
it('can delete a message for me', async function () {
await message.delete();
await helper.sleep(1000);
await helper.sleep(5000);
expect(await message.reload()).to.equal(null);
});