feat: 🎸 show associated aliases in target detail page (#2249)

* feat: 🎸 show associated aliases in target detail page
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2024-04-17 12:39:34 -07:00
1 parent a0fa66a14d
commit f9cd1c331f
5 files changed
+39 -1

No files matched your search

@@ -264,6 +264,17 @@ module('Acceptance | projects | targets | target', function (hooks) {
assert.strictEqual(currentURL(), urls.targetWithOneHost);
});
test('user can visit target details and see the associated aliases', async function (assert) {
instances.targetWithOneHost.update({
aliases: [{ id: 123, val: 'value' }],
});
await visit(urls.targets);
await click(`[href="${urls.targetWithOneHost}"]`);
assert.strictEqual(currentURL(), urls.targetWithOneHost);
assert.dom('.aliases').exists();
});
test('user can connect to a target without read permissions for host-set', async function (assert) {
assert.expect(1);
this.server.get('/host-sets/:id', () => new Response(403));