Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

718 B
Raw Blame
import { setTestProperties } from '../../helpers/TestProperties';
import { ensureTwoParticipants } from '../../helpers/participants';

setTestProperties(__filename, {
    usesBrowsers: [ 'p1', 'p2' ]
});

describe('Hangup', () => {
    it('joining the meeting', () => ensureTwoParticipants());

    it('hangup call and check', async () => {
        const { p1 } = ctx;
        const url = await p1.driver.getUrl();

        await p1.getToolbar().clickHangupButton();

        await p1.driver.waitUntil(
            async () => await p1.driver.getUrl() !== url,
            {
                timeout: 5000,
                timeoutMsg: 'p1 did not navigate away from the conference'
            }
        );
    });
});