test: 💍 add test case for when there are no auth methods

This commit is contained in:
Randall Morey committed 2020-07-31 12:43:51 -04:00
1 parent cfa9b4a3f3
commit 1f74aa8bfc
1 file changed
+9
@@ -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();