snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
44
tests/specs/media/pinning.spec.ts
Normal file
44
tests/specs/media/pinning.spec.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { setTestProperties } from '../../helpers/TestProperties';
|
||||
import { ensureTwoParticipants } from '../../helpers/participants';
|
||||
|
||||
setTestProperties(__filename, {
|
||||
usesBrowsers: [ 'p1', 'p2' ]
|
||||
});
|
||||
|
||||
describe('Pinning', () => {
|
||||
it('joining the meeting', () => ensureTwoParticipants());
|
||||
|
||||
it('p1 click on local', () => ctx.p1.getFilmstrip().pinParticipant(ctx.p1));
|
||||
|
||||
it('p1 click on remote', async () => {
|
||||
await closeToolbarMenu();
|
||||
|
||||
const { p1, p2 } = ctx;
|
||||
|
||||
await p1.getFilmstrip().pinParticipant(p2);
|
||||
});
|
||||
|
||||
it('p1 unpin remote', () => ctx.p1.getFilmstrip().unpinParticipant(ctx.p2));
|
||||
|
||||
it('p2 pin remote', () => ctx.p2.getFilmstrip().pinParticipant(ctx.p1));
|
||||
|
||||
it('p2 unpin remote', () => ctx.p2.getFilmstrip().unpinParticipant(ctx.p1));
|
||||
|
||||
it('p2 click on local', () => ctx.p2.getFilmstrip().pinParticipant(ctx.p2));
|
||||
|
||||
it('p2 click on remote', async () => {
|
||||
await closeToolbarMenu();
|
||||
|
||||
const { p1, p2 } = ctx;
|
||||
|
||||
await p2.getFilmstrip().pinParticipant(p1);
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Closes the overflow menu on both participants.
|
||||
*/
|
||||
async function closeToolbarMenu() {
|
||||
await ctx.p1.getToolbar().closeOverflowMenu();
|
||||
await ctx.p2.getToolbar().closeOverflowMenu();
|
||||
}
|
||||
Reference in New Issue
Block a user