bigbluebutton-Github/bigbluebutton-tests/playwright/sharednotes/sharednotes.js

19 lines
508 B
JavaScript
Raw Normal View History

2022-03-29 21:53:07 +08:00
const { default: test } = require('@playwright/test');
2021-11-30 02:39:52 +08:00
const Page = require('../core/page');
2022-03-29 21:53:07 +08:00
const { getSettings } = require('../core/settings');
const { startSharedNotes } = require('./util');
2021-11-30 02:39:52 +08:00
class SharedNotes extends Page {
constructor(browser, page) {
super(browser, page);
}
async openSharedNotes() {
2022-03-29 21:53:07 +08:00
const { sharedNotesEnabled } = getSettings();
test.fail(!sharedNotesEnabled, 'Shared notes is disabled');
await startSharedNotes(this);
2021-11-30 02:39:52 +08:00
}
}
2021-12-04 01:01:36 +08:00
exports.SharedNotes = SharedNotes;