 typing, will send another message 2 seconds afterward.',
          type: 'message'
        });

        // WHEN: The bot send a typing activity.
        await directLine.emulateIncomingActivity({
          from: { id: 'bot', role: 'bot' },
          id: crypto.randomUUID(),
          type: 'typing'
        });

        // THEN: Should receive a bot message.
        await waitFor(() => expect(pageElements.activities()).toHaveLength(2));

        // THEN: Bot should send a typing indicator and shown on the s