12 lines
421 B
JavaScript
12 lines
421 B
JavaScript
const e = require('../core/elements');
|
|
|
|
async function startPoll(test, shouldPublishPoll = false) {
|
|
await test.waitAndClick(e.actions);
|
|
await test.waitAndClick(e.polling);
|
|
await test.waitForSelector(e.hidePollDesc);
|
|
await test.waitAndClick(e.pollYesNoAbstentionBtn);
|
|
await test.waitAndClick(e.startPoll);
|
|
if (shouldPublishPoll) await test.waitAndClick(e.publishPollingLabel);
|
|
}
|
|
|
|
exports.startPoll = startPoll; |