Improve resiliency of edit mock test

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-08-13 17:09:54 +00:00
committed by GitHub
co-authored by trevor-signal
parent 82924e6d22
commit 7d83d3dda1
+4 -3
View File
@@ -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();
});
});