Attachment mock test: wait for draft attachment ready before send
This commit is contained in:
parent
7a9e51f5ad
commit
068dfbc327
3 changed files with 5 additions and 2 deletions
|
@ -4152,7 +4152,7 @@ export class ConversationModel extends window.Backbone
|
|||
)
|
||||
);
|
||||
drop(
|
||||
this.queueJob('maybeAddRemovedNotificaiton', async () =>
|
||||
this.queueJob('maybeAddRemovedNotification', async () =>
|
||||
this.maybeSetContactRemoved()
|
||||
)
|
||||
);
|
||||
|
|
|
@ -65,6 +65,9 @@ describe('attachments', function (this: Mocha.Suite) {
|
|||
.setInputFiles(
|
||||
path.join(__dirname, '..', '..', '..', 'fixtures', 'cat-screenshot.png')
|
||||
);
|
||||
await page
|
||||
.locator('.module-image.module-staged-attachment .module-image__image')
|
||||
.waitFor();
|
||||
const input = await app.waitForEnabledComposer();
|
||||
await typeIntoInput(input, 'This is my cat');
|
||||
await input.press('Enter');
|
||||
|
|
|
@ -779,7 +779,7 @@ export default class AccountManager extends EventTarget {
|
|||
serviceIdKind: ServiceIdKind,
|
||||
identityKey: KeyPairType
|
||||
): Promise<KyberPreKeyRecord> {
|
||||
const logId = `generateLastRestortKyberKey(${serviceIdKind})`;
|
||||
const logId = `generateLastResortKyberKey(${serviceIdKind})`;
|
||||
|
||||
const kyberKeyId = getNextKeyId(serviceIdKind, KYBER_KEY_ID_KEY);
|
||||
if (typeof kyberKeyId !== 'number') {
|
||||
|
|
Loading…
Reference in a new issue