You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

grantModerator.spec.ts 1009B

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