mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-08-20 05:09:35 +01:00
Improve resiliency of edit mock test
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
co-authored by
trevor-signal
parent
82924e6d22
commit
7d83d3dda1
@@ -24,6 +24,7 @@ import { typeIntoInput, waitForEnabledComposer } from '../helpers.node.ts';
|
||||
import type { MessageAttributesType } from '../../model-types.d.ts';
|
||||
import { sleep } from '../../util/sleep.std.ts';
|
||||
import { generateAci } from '../../test-helpers/serviceIdUtils.std.ts';
|
||||
import { expect } from 'playwright/test';
|
||||
|
||||
export const debug = createDebug('mock:test:edit');
|
||||
|
||||
@@ -800,8 +801,8 @@ describe('editing', function (this: Mocha.Suite) {
|
||||
}
|
||||
|
||||
debug("testing v4's send state");
|
||||
{
|
||||
debug('getting edited message from app (v4)');
|
||||
// We allow retries here to wait for the read sync to be processed
|
||||
await expect(async () => {
|
||||
const message = await getMessageFromApp(originalMessageTimestamp);
|
||||
|
||||
strictAssert(
|
||||
@@ -850,7 +851,7 @@ describe('editing', function (this: Mocha.Suite) {
|
||||
message.body,
|
||||
'body is same for v4 and main message'
|
||||
);
|
||||
}
|
||||
}).toPass();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user