From 166b35860ace66e79233ab62b8dbebfab4b0686e Mon Sep 17 00:00:00 2001 From: dharini Date: Wed, 1 Sep 2021 15:29:09 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20merge=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/templates/scopes/scope/host-catalogs/index.hbs | 4 +++- ui/admin/tests/acceptance/host-catalogs/create-test.js | 8 ++++---- ui/admin/tests/acceptance/host-catalogs/list-test.js | 3 +-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs index db06323c7..d5c7ab53a 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs @@ -20,7 +20,9 @@ {{t 'titles.new'}} + > + {{t 'titles.new'}} + {{/if}} {{/if}} diff --git a/ui/admin/tests/acceptance/host-catalogs/create-test.js b/ui/admin/tests/acceptance/host-catalogs/create-test.js index 8661e1eff..e95ecbde0 100644 --- a/ui/admin/tests/acceptance/host-catalogs/create-test.js +++ b/ui/admin/tests/acceptance/host-catalogs/create-test.js @@ -71,7 +71,7 @@ module('Acceptance | host-catalogs | create', function (hooks) { authenticateSession({}); }); - test('can create new host catalogs', async function (assert) { + test('Users can create new host catalogs', async function (assert) { assert.expect(1); const count = gethostCatalogCount(); await visit(urls.newHostCatalog); @@ -80,7 +80,7 @@ module('Acceptance | host-catalogs | create', function (hooks) { assert.equal(gethostCatalogCount(), count + 1); }); - test('can cancel create new host catalogs', async function (assert) { + test('Users can cancel create new host catalogs', async function (assert) { assert.expect(2); const count = gethostCatalogCount(); await visit(urls.newHostCatalog); @@ -90,7 +90,7 @@ module('Acceptance | host-catalogs | create', function (hooks) { assert.equal(gethostCatalogCount(), count); }); - test('can navigate to new host catalogs route with proper authorization', async function (assert) { + test('Users can navigate to new host catalogs route with proper authorization', async function (assert) { assert.expect(2); await visit(urls.projectScope); assert.ok( @@ -101,7 +101,7 @@ module('Acceptance | host-catalogs | create', function (hooks) { assert.ok(find(`[href="${urls.hostCatalogs}"]`)); }); - test('cannot navigate to new host catalogs route without proper authorization', async function (assert) { + test('Users cannot navigate to new host catalogs route without proper authorization', async function (assert) { assert.expect(2); instances.scopes.project.authorized_collection_actions['host-catalogs'] = []; diff --git a/ui/admin/tests/acceptance/host-catalogs/list-test.js b/ui/admin/tests/acceptance/host-catalogs/list-test.js index 127784f4a..6cf508e20 100644 --- a/ui/admin/tests/acceptance/host-catalogs/list-test.js +++ b/ui/admin/tests/acceptance/host-catalogs/list-test.js @@ -52,7 +52,6 @@ module('Acceptance | host-catalogs | list', function (hooks) { scope: instances.scopes.project, }); - // orgURL = `/scopes/${instances.orgScope.id}`; urls.hostCatalogs = `/scopes/${instances.orgScope.id}/host-catalogs`; urls.globalScope = `/scopes/global/scopes`; urls.orgScope = `/scopes/${instances.orgScope.id}/scopes`; @@ -63,7 +62,7 @@ module('Acceptance | host-catalogs | list', function (hooks) { authenticateSession({}); }); - test('can navigate to host catalogs with proper authorization', async function (assert) { + test('Users can navigate to host catalogs with proper authorization', async function (assert) { assert.expect(2); await visit(urls.projectScope); assert.ok(