diff --git a/ui/admin/tests/acceptance/accounts/change-password-test.js b/ui/admin/tests/acceptance/accounts/change-password-test.js index 0c7c63f32..3d7a86829 100644 --- a/ui/admin/tests/acceptance/accounts/change-password-test.js +++ b/ui/admin/tests/acceptance/accounts/change-password-test.js @@ -161,7 +161,7 @@ module('Acceptance | accounts | change password', function (hooks) { }); test('cannot change password when not authenticated', async function (assert) { - invalidateSession(); + await invalidateSession(); await visit(urls.changePassword); diff --git a/ui/admin/tests/acceptance/authentication-test.js b/ui/admin/tests/acceptance/authentication-test.js index d3224452a..7b10d4950 100644 --- a/ui/admin/tests/acceptance/authentication-test.js +++ b/ui/admin/tests/acceptance/authentication-test.js @@ -66,8 +66,8 @@ module('Acceptance | authentication', function (hooks) { let sessionsURL; let targetsURL; - hooks.beforeEach(function () { - invalidateSession(); + hooks.beforeEach(async function () { + await invalidateSession(); indexURL = '/'; globalScope = this.server.create('scope', { id: 'global' }); orgScope1 = this.server.create(