diff --git a/ui/desktop/tests/acceptance/projects/targets-test.js b/ui/desktop/tests/acceptance/projects/targets-test.js index 898a04222..b19ec797a 100644 --- a/ui/desktop/tests/acceptance/projects/targets-test.js +++ b/ui/desktop/tests/acceptance/projects/targets-test.js @@ -209,12 +209,15 @@ module('Acceptance | projects | targets', function (hooks) { await visit(urls.targets); }); - test('cannot navigate to an account form without proper authorization', async function (assert) { + test('cannot navigate to a target form without proper authorization', async function (assert) { assert.expect(1); - instances.target.authorized_actions = - instances.target.authorized_actions.filter((item) => item !== 'read'); + later(async () => { + run.cancelTimers(); + instances.target.authorized_actions = + instances.target.authorized_actions.filter((item) => item !== 'read'); + assert.notOk(find('main tbody .rose-table-header-cell:nth-child(1) a')); + }, 750); await visit(urls.target); - assert.notOk(find('main tbody .rose-table-header-cell:nth-child(1) a')); }); test('connecting to a target', async function (assert) {