fix-flaky-adminsettings-test
webzwo0i 2021-06-14 14:59:06 +02:00
parent df8219c66d
commit 47cac74534
1 changed files with 3 additions and 1 deletions

View File

@ -71,8 +71,10 @@ describe('Admin > Settings', function () {
}; };
await helper.waitForPromise(async () => { await helper.waitForPromise(async () => {
const startTime = await getStartTime(); const startTime = await getStartTime();
console.log('starttime', startTime);
console.log(typeof startTime);
return startTime != null && startTime > 0 && Date.now() > startTime; return startTime != null && startTime > 0 && Date.now() > startTime;
}, 1700, 1500); }, 1700, 750);
const clickTime = Date.now(); const clickTime = Date.now();
helper.admin$('#restartEtherpad').click(); helper.admin$('#restartEtherpad').click();
await helper.waitForPromise(async () => { await helper.waitForPromise(async () => {