2021-11-27 04:01:41 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2021-12-02 12:12:14 +08:00
|
|
|
const { Webcam } = require('./webcam');
|
2021-11-27 04:01:41 +08:00
|
|
|
|
|
|
|
test.describe.parallel('Webcam', () => {
|
|
|
|
test('Shares webcam', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const webcam = new Webcam(browser, page);
|
|
|
|
await webcam.init(true, true);
|
|
|
|
await webcam.share();
|
2021-11-27 04:01:41 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Checks content of webcam', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const webcam = new Webcam(browser, page);
|
|
|
|
await webcam.init(true, true);
|
|
|
|
await webcam.checksContent();
|
2021-11-27 04:01:41 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Checks webcam talking indicator', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const webcam = new Webcam(browser, page);
|
|
|
|
await webcam.init(true, false);
|
|
|
|
await webcam.talkingIndicator();
|
2021-11-27 04:01:41 +08:00
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|