2021-11-03 00:45:52 +08:00
|
|
|
const { test } = require('@playwright/test');
|
|
|
|
const { Status } = require('./status');
|
2021-11-16 00:42:29 +08:00
|
|
|
const { MultiUsers } = require('./multiusers');
|
2021-11-03 00:45:52 +08:00
|
|
|
|
|
|
|
test.describe.parallel('User test suite', () => {
|
2021-11-16 00:42:29 +08:00
|
|
|
test('Change status', async ({ browser, page }) => {
|
2021-11-03 00:45:52 +08:00
|
|
|
test.fixme();
|
2021-11-16 00:42:29 +08:00
|
|
|
const status = new Status(browser, page);
|
2021-11-03 00:45:52 +08:00
|
|
|
await status.init(true, true);
|
|
|
|
await status.test();
|
|
|
|
});
|
2021-11-16 00:42:29 +08:00
|
|
|
test('User presence check (multiple users)', async ({ browser, context, page }) => {
|
|
|
|
const page1 = await context.newPage();
|
|
|
|
const page2 = await context.newPage();
|
|
|
|
const multiusers = new MultiUsers(browser, page1, page2);
|
2021-11-23 05:51:16 +08:00
|
|
|
await multiusers.init();
|
|
|
|
await multiusers.userPresence();
|
2021-11-16 00:42:29 +08:00
|
|
|
});
|
2021-11-03 06:50:20 +08:00
|
|
|
});
|