From d42b587e14bc7febf0c38d77669a1e2f86bddf97 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 10 Sep 2024 09:46:16 +1000 Subject: [PATCH] Fix references to waitForEnabledComposer --- ts/test-mock/messaging/safety_number_test.ts | 3 ++- ts/test-mock/rate-limit/viewed_test.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/test-mock/messaging/safety_number_test.ts b/ts/test-mock/messaging/safety_number_test.ts index a726c2b03..01a2026c3 100644 --- a/ts/test-mock/messaging/safety_number_test.ts +++ b/ts/test-mock/messaging/safety_number_test.ts @@ -14,6 +14,7 @@ import { clickOnConversation, typeIntoInput, expectSystemMessages, + waitForEnabledComposer, } from '../helpers'; export const debug = createDebug('mock:test:safetyNumber'); @@ -108,7 +109,7 @@ describe('safety number', function (this: Mocha.Suite) { await clickOnConversation(window, alice); - const input = await app.waitForEnabledComposer(); + const input = await waitForEnabledComposer(window); await typeIntoInput(input, 'Hello Alice!'); await changeIdentityKey(); diff --git a/ts/test-mock/rate-limit/viewed_test.ts b/ts/test-mock/rate-limit/viewed_test.ts index 02895d048..6644f9198 100644 --- a/ts/test-mock/rate-limit/viewed_test.ts +++ b/ts/test-mock/rate-limit/viewed_test.ts @@ -291,7 +291,7 @@ describe('challenge/receipts', function (this: Mocha.Suite) { debug('Sending a message back to user - will trigger captcha!'); { - const input = await app.waitForEnabledComposer(); + const input = await waitForEnabledComposer(window); await typeIntoInput(input, 'Hi, good to hear from you!'); await input.press('Enter'); } @@ -314,7 +314,7 @@ describe('challenge/receipts', function (this: Mocha.Suite) { debug('Sending another message - this time it should not trigger captcha!'); { - const input = await app.waitForEnabledComposer(); + const input = await waitForEnabledComposer(window); await typeIntoInput(input, 'How have you been lately?'); await input.press('Enter'); } @@ -338,7 +338,7 @@ describe('challenge/receipts', function (this: Mocha.Suite) { 'Sending to Contact B - we should not pop captcha because we are waiting!' ); { - const input = await app.waitForEnabledComposer(); + const input = await waitForEnabledComposer(window); await typeIntoInput(input, 'You the cow guy from craigslist?'); await input.press('Enter'); }