bigbluebutton-Github/bigbluebutton-tests/playwright/screenshare/screenshare.spec.js
Anton Barboza de Sá 36b5a16c15
docs: Testing plan update (what's new features) (#20913)
* docs: update test links on release notes and spec files

* docs: add tests for 'what's new on 2.7' features

* Update docs/docs/testing/release-testing.md

Co-authored-by: Anton Georgiev <antobinary@users.noreply.github.com>

* test: pass the bbb version in the doc links

---------

Co-authored-by: Anton Georgiev <antobinary@users.noreply.github.com>
2024-08-14 09:50:03 -04:00

47 lines
1.9 KiB
JavaScript

const { test, devices } = require('@playwright/test');
const { ScreenShare } = require('./screenshare');
test.describe.parallel('Screenshare', () => {
// https://docs.bigbluebutton.org/2.7/testing/release-testing/#sharing-screen-in-full-screen-mode-automated
test('Share screen @ci', async ({ browser, browserName, page }) => {
test.skip(browserName === 'firefox' && process.env.DISPLAY === undefined,
"Screenshare tests not able in Firefox browser without desktop");
const screenshare = new ScreenShare(browser, page);
await screenshare.init(true, true);
await screenshare.startSharing();
});
test.describe.parallel('Mobile', () => {
test.beforeEach(({ browserName }) => {
test.skip(browserName === 'firefox', 'Mobile tests are not able in Firefox browser');
});
test('Share screen unavailable on Mobile Android', async ({ browser }) => {
const motoG4 = devices['Moto G4'];
const context = await browser.newContext({ ...motoG4 });
const page = await context.newPage();
const screenshare = new ScreenShare(browser, page);
await screenshare.init(true, true);
await screenshare.testMobileDevice();
});
test('Share screen unavailable on Mobile iPhone', async ({ browser }) => {
const iPhone11 = devices['iPhone 11'];
const context = await browser.newContext({ ...iPhone11 });
const page = await context.newPage();
const screenshare = new ScreenShare(browser, page);
await screenshare.init(true, true);
await screenshare.testMobileDevice();
});
test('Share screen unavailable on Tablet iPad', async ({ browser }) => {
const iPadPro11 = devices['iPad Pro 11'];
const context = await browser.newContext({ ...iPadPro11 });
const page = await context.newPage();
const screenshare = new ScreenShare(browser, page);
await screenshare.init(true, true);
await screenshare.testMobileDevice();
});
});
});