feat: 🎸 add test
This commit is contained in:
1 parent
025297c619
commit
2545753c2c
1 file changed
+7
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user