Add missing awaits.

pull/5934/head
SamTV12345 2023-09-15 21:12:49 +02:00
parent b84ab591aa
commit d5a8979841
No known key found for this signature in database
GPG Key ID: E63EEC7466038043
1 changed files with 2 additions and 2 deletions

View File

@ -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);