2024-03-06 22:26:03 +08:00
|
|
|
const { test } = require('../fixtures');
|
2023-03-22 03:46:52 +08:00
|
|
|
const { Reconnection } = require('./reconnection');
|
2023-06-09 01:27:18 +08:00
|
|
|
const { checkRootPermission } = require('../core/helpers');
|
2023-03-22 03:46:52 +08:00
|
|
|
|
2024-01-20 00:42:01 +08:00
|
|
|
test.describe.parallel('Reconnection', () => {
|
2023-03-22 03:46:52 +08:00
|
|
|
test('Chat', async ({ browser, context, page }) => {
|
2023-06-09 01:27:18 +08:00
|
|
|
await checkRootPermission(); // check sudo permission before starting test
|
2023-03-22 03:46:52 +08:00
|
|
|
const reconnection = new Reconnection(browser, context);
|
|
|
|
await reconnection.initModPage(page);
|
|
|
|
await reconnection.chat();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Audio', async ({ browser, context, page }) => {
|
2023-06-09 01:27:18 +08:00
|
|
|
await checkRootPermission(); // check sudo permission before starting test
|
2023-03-22 03:46:52 +08:00
|
|
|
const reconnection = new Reconnection(browser, context);
|
|
|
|
await reconnection.initModPage(page);
|
2023-05-11 03:51:05 +08:00
|
|
|
await reconnection.microphone();
|
2023-03-22 03:46:52 +08:00
|
|
|
});
|
|
|
|
});
|