tElementById('webchat')
        );

        await pageConditions.uiConnected();

        // ---

        // WHEN: Receive an empty livestream.
        await directLine.emulateIncomingActivity({
          channelData: { streamSequence: 1, streamType: 'streaming' },
          from: { id: 'bot', role: 'bot' },
          id: 'a-00001',
          type: 'typing'
        });

        // THEN: Should show typing indicator.
        await waitFor(() => expect(pageElements.typingIndicator()).toBeTruthy());

        //