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 }) => {
|
2021-12-01 13:35:41 +08:00
|
|
|
const multiusers = new MultiUsers(browser, context);
|
|
|
|
await multiusers.initPages(page);
|
2021-11-23 05:51:16 +08:00
|
|
|
await multiusers.userPresence();
|
2021-11-16 00:42:29 +08:00
|
|
|
});
|
2021-11-03 06:50:20 +08:00
|
|
|
});
|