mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 08:57:49 +00:00
43 lines
1002 B
TypeScript
43 lines
1002 B
TypeScript
import { ensureOneParticipant, ensureTwoParticipants } from '../../helpers/participants';
|
|
|
|
describe('Grant moderator', () => {
|
|
it('joining the meeting', async () => {
|
|
await ensureOneParticipant(ctx);
|
|
|
|
if (await ctx.p1.execute(() => typeof APP.conference._room.grantOwner !== 'function')) {
|
|
ctx.skipSuiteTests = true;
|
|
|
|
return;
|
|
}
|
|
|
|
await ensureTwoParticipants(ctx);
|
|
});
|
|
|
|
it('grant moderator and validate', async () => {
|
|
const { p1, p2 } = ctx;
|
|
|
|
if (!await p1.isModerator()) {
|
|
ctx.skipSuiteTests = true;
|
|
|
|
return;
|
|
}
|
|
|
|
if (await p2.isModerator()) {
|
|
ctx.skipSuiteTests = true;
|
|
|
|
return;
|
|
}
|
|
|
|
await p1.getFilmstrip().grantModerator(p2);
|
|
|
|
await p2.driver.waitUntil(
|
|
() => p2.isModerator(),
|
|
{
|
|
timeout: 3000,
|
|
timeoutMsg: 'p2 did not become moderator'
|
|
}
|
|
);
|
|
|
|
});
|
|
});
|