mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Add missing awaits.
This commit is contained in:
parent
b84ab591aa
commit
d5a8979841
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ describe('Admin > Settings', function () {
|
|||
|
||||
// new value for settings.json should now be saved
|
||||
// reset it to the old value
|
||||
helper.newAdmin('settings');
|
||||
await helper.newAdmin('settings');
|
||||
await helper.waitForPromise(
|
||||
() => helper.admin$ &&
|
||||
helper.admin$('.settings').val().length === settingsLength + 11, 20000);
|
||||
|
@ -54,7 +54,7 @@ describe('Admin > Settings', function () {
|
|||
await save();
|
||||
|
||||
// settings should have the old value
|
||||
helper.newAdmin('settings');
|
||||
await helper.newAdmin('settings');
|
||||
await helper.waitForPromise(
|
||||
() => helper.admin$ && helper.admin$('.settings').val().length === settingsLength &&
|
||||
settings === helper.admin$('.settings').val(), 20000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue