Fix references to waitForEnabledComposer

This commit is contained in:
Scott Nonnenberg 2024-09-10 09:46:16 +10:00
parent 026e9ef853
commit d42b587e14
2 changed files with 5 additions and 4 deletions

View file

@ -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();

View file

@ -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');
}