Attachment mock test: wait for draft attachment ready before send

This commit is contained in:
Scott Nonnenberg 2024-08-08 22:44:19 +10:00 committed by GitHub
parent 7a9e51f5ad
commit 068dfbc327
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -4152,7 +4152,7 @@ export class ConversationModel extends window.Backbone
) )
); );
drop( drop(
this.queueJob('maybeAddRemovedNotificaiton', async () => this.queueJob('maybeAddRemovedNotification', async () =>
this.maybeSetContactRemoved() this.maybeSetContactRemoved()
) )
); );

View file

@ -65,6 +65,9 @@ describe('attachments', function (this: Mocha.Suite) {
.setInputFiles( .setInputFiles(
path.join(__dirname, '..', '..', '..', 'fixtures', 'cat-screenshot.png') path.join(__dirname, '..', '..', '..', 'fixtures', 'cat-screenshot.png')
); );
await page
.locator('.module-image.module-staged-attachment .module-image__image')
.waitFor();
const input = await app.waitForEnabledComposer(); const input = await app.waitForEnabledComposer();
await typeIntoInput(input, 'This is my cat'); await typeIntoInput(input, 'This is my cat');
await input.press('Enter'); await input.press('Enter');

View file

@ -779,7 +779,7 @@ export default class AccountManager extends EventTarget {
serviceIdKind: ServiceIdKind, serviceIdKind: ServiceIdKind,
identityKey: KeyPairType identityKey: KeyPairType
): Promise<KyberPreKeyRecord> { ): Promise<KyberPreKeyRecord> {
const logId = `generateLastRestortKyberKey(${serviceIdKind})`; const logId = `generateLastResortKyberKey(${serviceIdKind})`;
const kyberKeyId = getNextKeyId(serviceIdKind, KYBER_KEY_ID_KEY); const kyberKeyId = getNextKeyId(serviceIdKind, KYBER_KEY_ID_KEY);
if (typeof kyberKeyId !== 'number') { if (typeof kyberKeyId !== 'number') {