Fix references to waitForEnabledComposer
This commit is contained in:
		
					parent
					
						
							
								026e9ef853
							
						
					
				
			
			
				commit
				
					
						d42b587e14
					
				
			
		
					 2 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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');
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue