chore: 🤖 add skip prompts toggle (#2036)

* chore: 🤖 add skip prompts toggle
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-12-08 09:17:36 -08:00
1 parent 77f8235ebf
commit 751b5bef78
7 files changed
+83 -28

No files matched your search

@@ -51,6 +51,8 @@ module('Acceptance | auth-methods | update', function (hooks) {
'[name="claims_scopes"] [data-test-remove-button]';
const CLAIMS_SCOPES_BTN_SELECTOR = '[name="claims_scopes"] button';
const CLAIMS_SCOPES_INPUT_SELECTOR = '[name="claims_scopes"] input';
const TOGGLE_SELECTOR = '[name="prompts"]';
const instances = {
scopes: {
global: null,
@@ -173,7 +175,7 @@ module('Acceptance | auth-methods | update', function (hooks) {
await click(IDP_CERTS_BTN_SELECTOR);
await fillIn('[name="max_age"]', '5');
await fillIn('[name="api_url_prefix"]', 'api_url_prefix');
await click('[id="none"]', 'none');
await click(TOGGLE_SELECTOR);
await click('form [type="submit"]:not(:disabled)');
const authMethod = this.server.schema.authMethods.findBy({ name });
@@ -192,7 +194,7 @@ module('Acceptance | auth-methods | update', function (hooks) {
assert.deepEqual(authMethod.attributes.idp_ca_certs, ['certificates']);
assert.strictEqual(authMethod.attributes.max_age, 5);
assert.strictEqual(authMethod.attributes.api_url_prefix, 'api_url_prefix');
assert.deepEqual(authMethod.attributes.prompts, ['consent', 'none']);
assert.deepEqual(authMethod.attributes.prompts, ['none']);
});
test('can update an ldap auth method and save changes', async function (assert) {