bigbluebutton-Github/bigbluebutton-tests/playwright/sharednotes/sharednotes.js
2022-03-29 10:53:07 -03:00

19 lines
508 B
JavaScript

const { default: test } = require('@playwright/test');
const Page = require('../core/page');
const { getSettings } = require('../core/settings');
const { startSharedNotes } = require('./util');
class SharedNotes extends Page {
constructor(browser, page) {
super(browser, page);
}
async openSharedNotes() {
const { sharedNotesEnabled } = getSettings();
test.fail(!sharedNotesEnabled, 'Shared notes is disabled');
await startSharedNotes(this);
}
}
exports.SharedNotes = SharedNotes;