|
@@ -0,0 +1,42 @@
|
|
1
|
+import { ensureOneParticipant, ensureTwoParticipants } from '../../helpers/participants';
|
|
2
|
+
|
|
3
|
+describe('Grant moderator', () => {
|
|
4
|
+ it('joining the meeting', async () => {
|
|
5
|
+ await ensureOneParticipant(ctx);
|
|
6
|
+
|
|
7
|
+ if (await ctx.p1.driver.execute(() => typeof APP.conference._room.grantOwner !== 'function')) {
|
|
8
|
+ ctx.skipSuiteTests = true;
|
|
9
|
+
|
|
10
|
+ return;
|
|
11
|
+ }
|
|
12
|
+
|
|
13
|
+ await ensureTwoParticipants(ctx);
|
|
14
|
+ });
|
|
15
|
+
|
|
16
|
+ it('grant moderator and validate', async () => {
|
|
17
|
+ const { p1, p2 } = ctx;
|
|
18
|
+
|
|
19
|
+ if (!await p1.isModerator()) {
|
|
20
|
+ ctx.skipSuiteTests = true;
|
|
21
|
+
|
|
22
|
+ return;
|
|
23
|
+ }
|
|
24
|
+
|
|
25
|
+ if (await p2.isModerator()) {
|
|
26
|
+ ctx.skipSuiteTests = true;
|
|
27
|
+
|
|
28
|
+ return;
|
|
29
|
+ }
|
|
30
|
+
|
|
31
|
+ await p1.getFilmstrip().grantModerator(p2);
|
|
32
|
+
|
|
33
|
+ await p2.driver.waitUntil(
|
|
34
|
+ () => p2.isModerator(),
|
|
35
|
+ {
|
|
36
|
+ timeout: 3000,
|
|
37
|
+ timeoutMsg: 'p2 did not become moderator'
|
|
38
|
+ }
|
|
39
|
+ );
|
|
40
|
+
|
|
41
|
+ });
|
|
42
|
+});
|