2021-11-30 02:39:52 +08:00
|
|
|
const { ELEMENT_WAIT_LONGER_TIME } = require('../core/constants');
|
|
|
|
const e = require('../core/elements');
|
|
|
|
|
|
|
|
async function startSharedNotes(test) {
|
|
|
|
await test.waitAndClick(e.sharedNotes);
|
2022-03-01 03:46:13 +08:00
|
|
|
await test.waitForSelector(e.hideNotesLabel, ELEMENT_WAIT_LONGER_TIME);
|
2022-01-29 03:52:22 +08:00
|
|
|
await test.hasElement(e.etherpadFrame);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getNotesLocator(test) {
|
|
|
|
return test.page.frameLocator(e.etherpadFrame)
|
|
|
|
.frameLocator(e.etherpadOuter)
|
|
|
|
.frameLocator(e.etherpadInner)
|
|
|
|
.locator(e.etherpadEditable);
|
2021-11-30 02:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.startSharedNotes = startSharedNotes;
|
2022-01-29 03:52:22 +08:00
|
|
|
exports.getNotesLocator = getNotesLocator;
|