chore: 🤖 merge main
This commit is contained in:
1 parent
f344d73f32
commit
166b35860a
3 files changed
+8
-7
No files matched your search
@@ -20,7 +20,9 @@
|
||||
<Rose::LinkButton
|
||||
@route='scopes.scope.host-catalogs.new'
|
||||
@style='primary'
|
||||
>{{t 'titles.new'}}</Rose::LinkButton>
|
||||
>
|
||||
{{t 'titles.new'}}
|
||||
</Rose::LinkButton>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</page.actions>
|
||||
|
||||
@@ -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'] =
|
||||
[];
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user