2021-11-23 05:51:16 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2021-12-02 12:12:14 +08:00
|
|
|
const { Draw } = require('./draw');
|
2021-11-23 05:51:16 +08:00
|
|
|
const { MultiUsers } = require('../user/multiusers');
|
|
|
|
|
2022-06-08 02:52:22 +08:00
|
|
|
test.describe.parallel('Whiteboard @ci', () => {
|
2021-11-23 05:51:16 +08:00
|
|
|
test('Draw rectangle', async ({ browser, page }) => {
|
|
|
|
const draw = new Draw(browser, page);
|
|
|
|
await draw.init(true, true);
|
|
|
|
await draw.test();
|
|
|
|
})
|
|
|
|
|
2021-12-02 12:12:14 +08:00
|
|
|
test('Give Additional Whiteboard Access', async ({ browser, context, page }) => {
|
|
|
|
const multiusers = new MultiUsers(browser, context);
|
|
|
|
await multiusers.initPages(page);
|
2021-11-23 05:51:16 +08:00
|
|
|
await multiusers.whiteboardAccess();
|
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|