From d5a89798413e3530a4facf87938cfea016af0b6d Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Fri, 15 Sep 2023 21:12:49 +0200 Subject: [PATCH] Add missing awaits. --- src/tests/frontend/specs/adminsettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/frontend/specs/adminsettings.js b/src/tests/frontend/specs/adminsettings.js index 7461cb661..ae122237b 100644 --- a/src/tests/frontend/specs/adminsettings.js +++ b/src/tests/frontend/specs/adminsettings.js @@ -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);