Add missing awaits.
parent
b84ab591aa
commit
d5a8979841
|
@ -43,7 +43,7 @@ describe('Admin > Settings', function () {
|
||||||
|
|
||||||
// new value for settings.json should now be saved
|
// new value for settings.json should now be saved
|
||||||
// reset it to the old value
|
// reset it to the old value
|
||||||
helper.newAdmin('settings');
|
await helper.newAdmin('settings');
|
||||||
await helper.waitForPromise(
|
await helper.waitForPromise(
|
||||||
() => helper.admin$ &&
|
() => helper.admin$ &&
|
||||||
helper.admin$('.settings').val().length === settingsLength + 11, 20000);
|
helper.admin$('.settings').val().length === settingsLength + 11, 20000);
|
||||||
|
@ -54,7 +54,7 @@ describe('Admin > Settings', function () {
|
||||||
await save();
|
await save();
|
||||||
|
|
||||||
// settings should have the old value
|
// settings should have the old value
|
||||||
helper.newAdmin('settings');
|
await helper.newAdmin('settings');
|
||||||
await helper.waitForPromise(
|
await helper.waitForPromise(
|
||||||
() => helper.admin$ && helper.admin$('.settings').val().length === settingsLength &&
|
() => helper.admin$ && helper.admin$('.settings').val().length === settingsLength &&
|
||||||
settings === helper.admin$('.settings').val(), 20000);
|
settings === helper.admin$('.settings').val(), 20000);
|
||||||
|
|
Loading…
Reference in New Issue