From 42283596b26f39707282efb1d21c1a20a92b0c12 Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Thu, 2 Sep 2021 08:13:47 -0700 Subject: [PATCH 1/2] Update list-test.js --- ui/admin/tests/acceptance/auth-methods/list-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/admin/tests/acceptance/auth-methods/list-test.js b/ui/admin/tests/acceptance/auth-methods/list-test.js index 3ca7925f7..c943c01e8 100644 --- a/ui/admin/tests/acceptance/auth-methods/list-test.js +++ b/ui/admin/tests/acceptance/auth-methods/list-test.js @@ -53,7 +53,7 @@ module('Acceptance | auth-methods | list', function (hooks) { authenticateSession({}); }); - test('can navigate to auth methods with proper authorization', async function (assert) { + test('Users can navigate to auth methods with proper authorization', async function (assert) { assert.expect(2); await visit(urls.orgScope); assert.ok( @@ -64,7 +64,7 @@ module('Acceptance | auth-methods | list', function (hooks) { assert.ok(find(`[href="${urls.authMethods}"]`)); }); - test('User cannot navigate to index without either list or create actions', async function (assert) { + test('Users cannot navigate to index without either list or create actions', async function (assert) { assert.expect(2); instances.orgScope.authorized_collection_actions['auth-methods'] = []; await visit(urls.orgScope); From 66b40e531848883804872745e2b8c4832db57a9d Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Thu, 2 Sep 2021 08:15:04 -0700 Subject: [PATCH 2/2] Update create-test.js --- ui/admin/tests/acceptance/auth-methods/create-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/admin/tests/acceptance/auth-methods/create-test.js b/ui/admin/tests/acceptance/auth-methods/create-test.js index a9c9dea2d..8554157e1 100644 --- a/ui/admin/tests/acceptance/auth-methods/create-test.js +++ b/ui/admin/tests/acceptance/auth-methods/create-test.js @@ -50,7 +50,7 @@ module('Acceptance | auth-methods | create ', function (hooks) { urls.authMethod = `${urls.authMethods}/${instances.authMethod.id}`; }); - test('can create new auth method', async function (assert) { + test('Users can create new auth method', async function (assert) { assert.expect(1); const authMethodsCount = this.server.db.authMethods.length; await visit(urls.newAuthMethod); @@ -60,7 +60,7 @@ module('Acceptance | auth-methods | create ', function (hooks) { assert.equal(this.server.db.authMethods.length, authMethodsCount + 1); }); - test('can navigate to new auth-methods route with proper authorization', async function (assert) { + test('Users can navigate to new auth-methods route with proper authorization', async function (assert) { assert.expect(2); instances.orgScope.authorized_collection_actions['auth-methods'] = [ 'create', @@ -75,7 +75,7 @@ module('Acceptance | auth-methods | create ', function (hooks) { assert.ok(find(`[href="${urls.authMethods}"]`)); }); - test('cannot navigate to new auth-methods route without proper authorization', async function (assert) { + test('Users cannot navigate to new auth-methods route without proper authorization', async function (assert) { assert.expect(2); instances.orgScope.authorized_collection_actions['auth-methods'] = []; await visit(urls.orgURL);