From 1f74aa8bfc9ff2aafda2b6abcb03708dfde14b0d Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 31 Jul 2020 12:43:51 -0400 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20add=20test=20case=20for?= =?UTF-8?q?=20when=20there=20are=20no=20auth=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/tests/acceptance/authentication-test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/core/tests/acceptance/authentication-test.js b/ui/core/tests/acceptance/authentication-test.js index f16a531bb..a429349e9 100644 --- a/ui/core/tests/acceptance/authentication-test.js +++ b/ui/core/tests/acceptance/authentication-test.js @@ -57,6 +57,15 @@ module('Acceptance | authentication', function (hooks) { assert.equal(currentURL(), authMethodAuthenticateURL); }); + test('visiting auth methods authenticate route when there no methods shows a message', async function (assert) { + assert.expect(2); + authMethod.destroy() + await visit(authenticateURL); + await a11yAudit(); + assert.equal(currentURL(), authenticateURL); + assert.ok(find('.rose-message')); + }); + test('visiting auth method when the scope cannot be loaded is still allowed', async function (assert) { assert.expect(1); orgScope.destroy();