Fixed poll which was not working with automated testing

pull/1/head
Caleb James DeLisle 7 years ago
parent 05ad38cfe1
commit 4808c8b374

@ -967,7 +967,6 @@ define([
});
APP.$createRow = $('#cp-app-poll-create-option').click(function () {
var uncommittedCopy = { content: getUncommitted('row') };
console.log(uncommittedCopy);
mergeUncommitted(proxy, uncommittedCopy, true);
change(null, null, null, null, function() {
var newId = APP.uncommitted.content.rowsOrder[0];
@ -1111,7 +1110,7 @@ define([
}).nThen(function (waitFor) {
$('#cp-app-poll-create-user').click();
setTimeout(waitFor());
}).nThen(function (waitFor) {
}).nThen(function (/*waitFor*/) {
passIfOk(t);
});
});
@ -1257,6 +1256,7 @@ define([
}).nThen(function (waitFor) {
common.getSframeChannel().onReady(waitFor());
}).nThen(function (/* waitFor */) {
Test.registerInner(common.getSframeChannel());
var metadataMgr = common.getMetadataMgr();
APP.locked = APP.readOnly = metadataMgr.getPrivateData().readOnly;
APP.loggedIn = common.isLoggedIn();

Loading…
Cancel
Save