Files
upstream-jitsi-meet/tests/specs/ui/mobileFilmstrip.spec.ts
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

47 lines
2.0 KiB
TypeScript

import { setTestProperties } from '../../helpers/TestProperties';
import { ensureTwoParticipants } from '../../helpers/participants';
setTestProperties(__filename, {
description: 'Checks the filmstrip visibility when joining from a mobile browser.',
usesBrowsers: [ 'p1', 'p2' ]
});
describe('Filmstrip on a mobile browser', () => {
before(async () => {
// Make p2's Chrome look like an iPhone so Platform.OS resolves to 'ios' and isMobileBrowser()
// returns true. emulate() persists for the session.
await multiRemoteBrowser.getInstance('p2').emulate('device', 'iPhone 15');
});
it('filmstrip and self view are visible when joining a 1:1 call', async () => {
await ensureTwoParticipants({
configOverwrite: {
// The deployment config may show the deep linking page on a mobile browser; disable it.
deeplinking: {
disabled: true
},
// The default config for tests disables 1-on-1 mode, enable it to test it.
disable1On1Mode: false
}
});
const { p2 } = ctx;
// Make sure the mobile emulation is in effect, otherwise the test silently degrades into
// testing the desktop UI.
expect(await p2.execute(() => navigator.userAgent)).toContain('iPhone');
expect(await p2.execute(() => window.innerWidth)).toBeLessThan(500);
// The whole filmstrip (including the self view) must not be hidden when joining a 1:1 call
// on a narrow/mobile client.
await p2.getFilmstrip().assertVisible();
await p2.getFilmstrip().assertSelfViewIsHidden(false);
// On mobile browsers the remote thumbnails are hidden in 1-on-1 mode even when the toolbar is
// visible (the remote participant is already on the stage), as opposed to desktop where their
// visibility follows the toolbar one.
await p2.getFilmstrip().verifyRemoteVideosDisplay(false);
});
});